On 05/16/2011 09:24 AM, Dmitry Kan wrote:
Dear list,
Might have missed it from the literature and the list, sorry if so, but:
SOLR 1.4.1
Consider the query:
term1 term2 OR "term1 term2" OR "term1 term3"
I think what's happening is that your query gets rewritten into
something like:
Hi Jonathan,
Well, I clearly understand, why 'term1 term2 OR ...' gives exactly same
results as 'term1 AND term2 OR ...', but what I do not get is, why grouping
with parentheses is required to have both term1 and term2 in the same hit
even though AND is the default operator and space between terms
Why? Becuase of how the solr/lucene query parser parses?
It parses into seperate tokens/phrases, and then marks each unit as
mandatory or optional. The operator's joining the tokens/phrases are
used to determine if a unit is mandatory or optional.
Since your defaultOperator="AND"
term1 t
Dear list,
Might have missed it from the literature and the list, sorry if so, but:
SOLR 1.4.1
Consider the query:
term1 term2 OR "term1 term2" OR "term1 term3"
Problem: The query produces a hit containing only term1.
Solution: Modified query, grouping with parenthesis
(term1 term2) OR "t