Ummmm. That may be true for your particular example data set, but not
in the general case, so don't be fooled.

q.op=AND is equivalent to
q=f1:(word1 AND word2) AND f2:(word3 AND word4) AND f3:(word5 AND word6)

This query
q=f1:"word1 word2" AND f2:"word3 word4" AND f3:"word5 word6"
would not match a document like this

f1:word2 word1
f2:word3 word4
f3:word5 word6

since it requires that the words be in order. Whereas

q=f1:(word1 AND word2) AND f2:(word3 AND word4) AND f3:(word5 AND word6)

would match the doc.

Best,
Erick


On Thu, Oct 30, 2014 at 5:46 PM, vsriram30 <vsrira...@gmail.com> wrote:
> Thanks Eric. I tried q.op=AND and noticed that it is equivalent to
> specifying,
> q=f1:"word1 word2" AND f2:"word3 word4" AND f3:"word5 word6"
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-And-query-tp4166685p4166760.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to