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

**URL:** <https://discuss.elastic.co/t/boost-documents-having-a-particular-field-with-any-value-except-a-certain-value/156020>\
**Category:** Elasticsearch\
**Created:** [November 9, 2018, 10:24am UTC](https://discuss.elastic.co/t/boost-documents-having-a-particular-field-with-any-value-except-a-certain-value/156020 "2018-11-09T10:24:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maryam\_abdullah](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@maryam\_abdullah](https://discuss.elastic.co/u/maryam_abdullah)\
**Post date:** [November 9, 2018, 10:24am UTC](https://discuss.elastic.co/t/boost-documents-having-a-particular-field-with-any-value-except-a-certain-value/156020/1 "2018-11-09T10:24:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jaspreet\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaspreet_singh/32/58296_2.png) [@Jaspreet\_Singh](https://discuss.elastic.co/u/Jaspreet_Singh)\
**Post date:** [November 14, 2018, 7:54pm UTC](https://discuss.elastic.co/t/boost-documents-having-a-particular-field-with-any-value-except-a-certain-value/156020/2 "2018-11-14T19:54:25Z")

</div>

There sure is. Check this - [https://www.elastic.co/guide/en/elasticsearch/guide/current/\_boosting\_query\_clauses.html](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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 12, 2018, 7:54pm UTC](https://discuss.elastic.co/t/boost-documents-having-a-particular-field-with-any-value-except-a-certain-value/156020/3 "2018-12-12T19:54:40Z")

</div>

Closed on December 12, 2018, 7:54pm UTC

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