tags:

views:

38

answers:

1

Hi,

I'm using the dismax handler to perform solr search over records (boosting some fields).

In my index, I have a RetailerId for each document, as well as other fields.

My query needs to search for documents that have this RetailerId as well as keywords:

localhost:8983/solr/select?qt=dismax&q=RetailerId:(27 OR 92) AND socks

What is the syntax for such a query? Thanks!

+1  A: 

Dismax does not support boolean operators. For a query like the one you described, you need to use the Standard Query Handler.

UPDATE

I have made a couple of tests and the fq parameter seems to work with dismax:
/select?qt=dismax&q=socks&fq=RetailerId:(27 OR 92)

Pascal Dimassimo
That may be a problem. Is there any way to make this happen with Dismax? Can I add another param that filters on these, for example facets etc?
jimi
See my update about the fq param
Pascal Dimassimo
Magic, thank you so much for your help.
jimi