with dismax you get to say things like match all terms if less then 3 terms entered else match term-x it produces highly flexible and relevant matches and works very well in lots of common search usescases. field boosting allows further tuning.
if you have rigid rules like the last one you quote i don't think dismax is for you. Although i might be wrong and some one might be able to help On 27 January 2011 13:32, Isan Fulia <isan.fu...@germinait.com> wrote: > It worked by making mm=0 (it acted as OR operator) > but how to handle this > > field1:((keyword1 AND keyword2) OR (keyword3 AND keyword4)) OR > field2:((keyword1 AND keyword2) OR (keyword3 AND keyword4)) OR > field3:((keyword1 AND keyword2) OR (keyword3 AND keyword4)) > > > > > On 27 January 2011 17:06, lee carroll <lee.a.carr...@googlemail.com> > wrote: > > > sorry ignore that - we are on dismax here - look at mm param in the docs > > you can set this to achieve what you need > > > > On 27 January 2011 11:34, lee carroll <lee.a.carr...@googlemail.com> > > wrote: > > > > > the default operation can be set in your config to be "or" or on the > > query > > > something like q.op=OR > > > > > > > > > > > > On 27 January 2011 11:26, Isan Fulia <isan.fu...@germinait.com> wrote: > > > > > >> 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. > > >> > > > > > > > > > > > > -- > Thanks & Regards, > Isan Fulia. >