Hi Andreas, You should be able to say:
(-organisations:["" TO *] -roles:["" TO *]) OR (+organisations:(150 42) +roles:(174 72)) Study your queries with debuqQuery=true http parameter, at times this is invaluable. Dmitry On Wed, Mar 5, 2014 at 2:54 AM, Andreas Owen <a...@conx.ch> wrote: > i want to use the following in fq and i need to set the operator to OR. My > q.op is AND but I need OR in fq. I have read about ofq but that is for > putting OR between multiple fq. Can I set the operator for fq? > > (-organisations:["" TO *] -roles:["" TO *]) (+organisations:(150 42) > +roles:(174 72)) > > > The statement should find all docs without organisations and roles or > those that have at least one roles and organisations entry. these fields > are multivalued. > > > > > -- Dmitry Blog: http://dmitrykan.blogspot.com Twitter: twitter.com/dmitrykan