The DisMax query parser internally hard-codes its operator to OR.
This is quite unlike the Lucene query parser, for which the default operator
can be configured using the solrQueryParser in schema.xml
Regards,
Bijeet Singh
On Thu, Jan 27, 2011 at 4:56 PM, Isan Fulia isan.fu...@germinait.comwrote:
but q=keyword1 keyword2 does AND operation not OR
On 27 January 2011 16:22, lee carroll lee.a.carr...@googlemail.com
wrote:
use dismax q for first three fields and a filter query for the 4th and
5th
fields
so
q=keyword1 keyword 2
qf = field1,feild2,field3
pf = field1,feild2,field3
mm=something sensible for you
defType=dismax
fq= field4:(keyword3 OR keyword4) AND field5:(keyword5)
take a look at the dismax docs for extra params
On 27 January 2011 08:52, Isan Fulia isan.fu...@germinait.com wrote:
Hi all,
The query for standard request handler is as follows
field1:(keyword1 OR keyword2) OR field2:(keyword1 OR keyword2) OR
field3:(keyword1 OR keyword2) AND field4:(keyword3 OR keyword4) AND
field5:(keyword5)
How the same above query can be written for dismax request handler
--
Thanks Regards,
Isan Fulia.
--
Thanks Regards,
Isan Fulia.