check for

 <solrQueryParser defaultOperator="OR"/>

in schema.xml

On Apr 28, 2008, at 12:16 PM, briand wrote:


I'm searching using query of 'food' and get back 572 results. When I do a search for 'food drink' I am expecting more results since it's defaulting to ORing the search terms, however, I now get back 6 results. I'm sure I'm
doing something stupid, but I don't know what for sure.   I am using a
DismaxQueryHandler for this and boosting certain fields. I've included
some of the debug info for the 'food drink' results.    Thanks.

<str name="rawquerystring">food drink
</str>
<str name="querystring">food drink

<str name="parsedquery">
+((DisjunctionMaxQuery((summary:food^2.0 | places:food^2.5 | tags:food^10.0
| content:food | name:food^15.0 | author:food^10.0 |
locations:food^5.0)~0.01) DisjunctionMaxQuery((summary:drink^2.0 |
places:drink^2.5 | tags:drink^10.0 | content:drink | name:drink^15.0 |
author:drink^10.0 | locations:drink^5.0)~0.01))~2)
DisjunctionMaxQuery((summary:"food drink"~2^2.0 | places:"food drink"~2^2.5
| tags:"food drink"~2^10.0 | content:"food drink"~2 | name:"food
drink"~2^15.0 | author:"food drink"~2^10.0 | locations:"food
drink"~2^5.0)~0.01)


--
View this message in context: 
http://www.nabble.com/querying-with-two-words-returns-less-results-when-ORing-terms-tp16942461p16942461.html
Sent from the Solr - User mailing list archive at Nabble.com.


Reply via email to