lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Query with whitespace
Date Fri, 01 Mar 2013 17:17:34 GMT
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.


View raw message