Hi,

I have defined the following edismax query parser:

<requestHandler name="/search" class="solr.SearchHandler" ><lst name="defaults"><str name="mm">100%</str><str name="defType">edismax</str><float name="tie">0.01</float><int name="ps">100</int><str name="q.alt">*:*</str><str name="q.op">AND</str><str name="qf">field1^2.0 field2</str><str name="rows">10</str><str name="fl">*</str></lst>
</requestHandler>


My search query looks like:

q=(word1 word2) OR (word3 word4)

Since I specified AND as default query operator, the query should match documents by ((word1 AND word2) OR (word3 AND word4)) but the query matches documents by ((word1 OR word2) OR (word3 OR word4)).

Could anyone explain the behaviour?

Thanks!

Johannes

P.S. The query q=(word1 word2) match all documents by (word1 AND word2)

Reply via email to