# Check empty string in nested attribute

**URL:** <https://discuss.elastic.co/t/check-empty-string-in-nested-attribute/73477>\
**Category:** Elasticsearch\
**Created:** [February 1, 2017, 8:09am UTC](https://discuss.elastic.co/t/check-empty-string-in-nested-attribute/73477 "2017-02-01T08:09:30Z")\
**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:** [February 1, 2017, 8:27am UTC](https://discuss.elastic.co/t/check-empty-string-in-nested-attribute/73477/2 "2017-02-01T08:27:11Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

Have a look at `exists` query: [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html)

---

_[View the full topic](https://discuss.elastic.co/t/check-empty-string-in-nested-attribute/73477)._
