# Behavior of missing filter in 1.3.2

**URL:** https://discuss.elastic.co/t/behavior-of-missing-filter-in-1-3-2/19716
**Category:** Elasticsearch
**Created:** [September 10, 2014, 2:34pm UTC](https://discuss.elastic.co/t/behavior-of-missing-filter-in-1-3-2/19716 "2014-09-10T14:34:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Drew\_Daugherty\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drew_daugherty_2/32/1289_2.png) [@Drew\_Daugherty\_2](https://discuss.elastic.co/u/Drew_Daugherty_2)
#### Post date: [September 10, 2014, 2:34pm UTC](https://discuss.elastic.co/t/behavior-of-missing-filter-in-1-3-2/19716/1 "2014-09-10T14:34:28Z")

</div>

Hi,

I am trying to determine what the behavior of the missing filter should be.  
I have a one-node instance of ES 1.3.2 running on centos 6.

I add the following simple document to an index:

{  
"testField": "",  
"testField2": ""  
}

And ran the following query:  
{  
"query" : { "filtered" : {"filter": {  
"missing": {  
"field": "testField"  
} } } }  
}

At first, running under JDK 1.7.0\_60, I was not able to retrieve the  
document. When I upgraded to JDK 1.7.0\_67, I was able to retrieve the  
document with the query above. This is repeatable when I backlevel the jdk  
I am not able to find the document. I am aware of the open issue affecting  
the missing filter  
at [https://github.com/elasticsearch/elasticsearch/issues/7348](https://github.com/elasticsearch/elasticsearch/issues/7348) but should I  
rely on the missing filter working with null strings under JDK 1.7.0\_67?

-drew

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9856e5a0-130c-4463-9fdd-03e7764712a2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9856e5a0-130c-4463-9fdd-03e7764712a2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:03am UTC](https://discuss.elastic.co/t/behavior-of-missing-filter-in-1-3-2/19716/2 "2017-07-06T01:03:17Z")

</div>


