# Match\_all filter v/s empty filter

**URL:** <https://discuss.elastic.co/t/match-all-filter-v-s-empty-filter/19364>\
**Category:** Elasticsearch\
**Created:** [August 20, 2014, 11:09am UTC](https://discuss.elastic.co/t/match-all-filter-v-s-empty-filter/19364 "2014-08-20T11:09:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subhajit\_Ghosh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/subhajit_ghosh/32/1332_2.png) [@Subhajit\_Ghosh](https://discuss.elastic.co/u/Subhajit_Ghosh)\
**Post date:** [August 20, 2014, 11:09am UTC](https://discuss.elastic.co/t/match-all-filter-v-s-empty-filter/19364/1 "2014-08-20T11:09:50Z")

</div>

{  
"query": {  
"filtered": {  
"filter": {},  
"query": {  
"match\_all": {}  
}  
}  
}  
}

and

{  
"query": {  
"filtered": {  
"filter": {  
"match\_all": {}  
},  
"query": {  
"match\_all": {}  
}  
}  
}  
}

seems to return the same results. Does anyone know if there is a  
performance impact on choosing one over the other?

--  
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/65aa8778-2ab3-4f61-8dad-00f239ce137e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/65aa8778-2ab3-4f61-8dad-00f239ce137e%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:07am UTC](https://discuss.elastic.co/t/match-all-filter-v-s-empty-filter/19364/2 "2017-07-06T01:07:27Z")

</div>


