: But when the first keyword is not index, and other keywords are index, solr : can not query it. : (example I search with: apacheee solr reference).
run your queries in a browser and add "debug=query" to see how your query is being parsed. you most likely are seeing the results of the parser defaulting to "AND" -- ie: requiring all query terms. If you want to match as many of the query terms as possible, but only require that at least 1 matches, you need to set the default operator (q.op) to "OR" ... https://cwiki.apache.org/confluence/display/solr/The+Standard+Query+Parser ...either that, or consider using an alternative parser like dismax/edismax and configuring them to be linient in terms of how many clauses must match something (the "mm" param)... https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser -Hoss