# Dealing with Empty data fields in Elasticsearch

**URL:** https://discuss.elastic.co/t/dealing-with-empty-data-fields-in-elasticsearch/147200
**Category:** Elasticsearch
**Created:** [September 4, 2018, 12:16pm UTC](https://discuss.elastic.co/t/dealing-with-empty-data-fields-in-elasticsearch/147200 "2018-09-04T12:16:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chetansk](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@chetansk](https://discuss.elastic.co/u/chetansk)
#### Post date: [September 4, 2018, 12:16pm UTC](https://discuss.elastic.co/t/dealing-with-empty-data-fields-in-elasticsearch/147200/1 "2018-09-04T12:16:08Z")

</div>

Hi,

I am creating elasticsearch scripts to retrieve data. I am just using match\_all as query to retrieve all data in particular field. I am getting the output results.However, most of the data have empty value for that particular field. I would like to update my script in such a way that i can retrieve only the data having value of that particular field.I tried to use exists and missing filters but didn't help either. One of the reason those filters didn't work may be elasticsearch version i am using is quite older (version 1.4).  
Looking for the help/suggestions.

Thanks.

---

<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: [October 2, 2018, 12:16pm UTC](https://discuss.elastic.co/t/dealing-with-empty-data-fields-in-elasticsearch/147200/2 "2018-10-02T12:16:16Z")

</div>

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