On 3/1/2013 8:50 AM, vsl wrote:
I would like to send query like "car house". My expectation is to have resulting documents that contains both car and house. Unfortunately Apache Solr out of the box returns documents as if the whitespace between was treated as OR. Does anybody know how to fix this?
Three solutions come to mind: 1) Set the q.op parameter to AND. 2) Send "car AND house" instead, or "+car +house". 3) Use the edismax query parser (defType=edismax) and set the mm parameter to 100%. The wiki should have info on all these.
Thanks, Shawn