Solr search for specific values ​​using depressurization

I use the smax handler to perform solr searches on records (raising some fields).

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

My query should look 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? Thank!

+3
source share
2 answers

Dismax does not support logical operators. For a query like the one you described, you need to use a standard query handler.

UPDATE

, fq, , dismax:
/select?qt=dismax&q=socks&fq=RetailerId:(27 OR 92)

+11

, eDismax ( disMax), , , q= your query AND face_name:"facet value"

0

Source: https://habr.com/ru/post/1769112/


All Articles