# Term vs match query on keyword field

**URL:** <https://discuss.elastic.co/t/term-vs-match-query-on-keyword-field/65892>\
**Category:** Elasticsearch\
**Created:** [November 13, 2016, 2:24am UTC](https://discuss.elastic.co/t/term-vs-match-query-on-keyword-field/65892 "2016-11-13T02:24:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbkemp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidbkemp/32/594_2.png) [@davidbkemp](https://discuss.elastic.co/u/davidbkemp)\
**Post date:** [November 13, 2016, 2:24am UTC](https://discuss.elastic.co/t/term-vs-match-query-on-keyword-field/65892/1 "2016-11-13T02:24:02Z")

</div>

I believe that a filter containing a term or match query on a keyword (not analysed) field should give the same results regardless of whether I use "term" or "match". Is one more efficient than the other? eg. is a term filter more likely to be cached?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 13, 2016, 2:56am UTC](https://discuss.elastic.co/t/term-vs-match-query-on-keyword-field/65892/2 "2016-11-13T02:56:54Z")

</div>

Not really. I'd use match for consistency.

---

<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:** [December 11, 2016, 2:57am UTC](https://discuss.elastic.co/t/term-vs-match-query-on-keyword-field/65892/3 "2016-12-11T02:57:12Z")

</div>

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