# Match filter vs terms filter?

**URL:** <https://discuss.elastic.co/t/match-filter-vs-terms-filter/11689>\
**Category:** Elasticsearch\
**Created:** [April 24, 2013, 11:23pm UTC](https://discuss.elastic.co/t/match-filter-vs-terms-filter/11689 "2013-04-24T23:23:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burak\_Emre\_Kabakci](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_emre_kabakci/32/2212_2.png) [@Burak\_Emre\_Kabakci](https://discuss.elastic.co/u/Burak_Emre_Kabakci)\
**Post date:** [April 24, 2013, 11:23pm UTC](https://discuss.elastic.co/t/match-filter-vs-terms-filter/11689/1 "2013-04-24T23:23:02Z")

</div>

Is there any performance differences between these queries? They return  
same results for same query and both cache query results.

{  
"filter": {  
"query": {  
"match\_phrase": {  
"name": "new york"  
}  
}  
}  
}

"filter" : { "terms" : { "name" : ["new", "york"]} }

BTW, Is there any way to support double quotes feature using a custom  
analyzer in match query?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:39am UTC](https://discuss.elastic.co/t/match-filter-vs-terms-filter/11689/2 "2017-07-06T02:39:43Z")

</div>


