# How can i search a null value in an ES query?

**URL:** <https://discuss.elastic.co/t/how-can-i-search-a-null-value-in-an-es-query/191411>\
**Category:** Discussions en français\
**Created:** [July 19, 2019, 2:29pm UTC](https://discuss.elastic.co/t/how-can-i-search-a-null-value-in-an-es-query/191411 "2019-07-19T14:29:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 19, 2019, 3:05pm UTC](https://discuss.elastic.co/t/how-can-i-search-a-null-value-in-an-es-query/191411/2 "2019-07-19T15:05:52Z")

</div>

Please [read this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) about how to format.

You can try a `must_not` `bool` clause with an `exists` query. See [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html#find-docs-null-values](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html#find-docs-null-values)

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-search-a-null-value-in-an-es-query/191411)._
