Boost documents having a particular field with any value except a certain value

Hey,

Is there any way I can boost documents with a particular field having any value except a certain value (might be multiple)?

Thank you.

There sure is. Check this - https://www.elastic.co/guide/en/elasticsearch/guide/current/_boosting_query_clauses.html
For exclusion cases, just use must_not. If you can share specific example requirement, I can try being more specific about framing the query.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.