# What is the difference between common terms query vs match query with cutoff\_frequency set

**URL:** https://discuss.elastic.co/t/what-is-the-difference-between-common-terms-query-vs-match-query-with-cutoff-frequency-set/17466
**Category:** Elasticsearch
**Created:** [May 12, 2014, 8:22pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-common-terms-query-vs-match-query-with-cutoff-frequency-set/17466 "2014-05-12T20:22:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://discuss.elastic.co/u/Mike)
#### Post date: [May 12, 2014, 8:22pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-common-terms-query-vs-match-query-with-cutoff-frequency-set/17466/1 "2014-05-12T20:22:51Z")

</div>

I was reading up on the match query and noticed that it has a  
cutoff\_frequency parameter, which seems to do pretty much what the common  
terms query does.

1. What is the difference between the common and match queries?
2. When would I want to use common terms over match?
3. Ultimately, would the direction be to have common terms query roll up  
into the match query (with any differences added to match)?

--  
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/1bcf87e3-3b65-45bc-8578-dde77b10c37f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1bcf87e3-3b65-45bc-8578-dde77b10c37f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://discuss.elastic.co/u/Mike)
#### Post date: [May 30, 2014, 3:02pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-common-terms-query-vs-match-query-with-cutoff-frequency-set/17466/2 "2014-05-30T15:02:24Z")

</div>

Bump

On Monday, May 12, 2014 4:22:51 PM UTC-4, Mike wrote:

> I was reading up on the match query and noticed that it has a  
> cutoff\_frequency parameter, which seems to do pretty much what the common  
> terms query does.
> 
> 1. What is the difference between the common and match queries?
> 2. When would I want to use common terms over match?
> 3. Ultimately, would the direction be to have common terms query roll  
> up into the match query (with any differences added to match)?

--  
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/cace77ef-9f36-4308-a3b3-2b99aaa17844%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cace77ef-9f36-4308-a3b3-2b99aaa17844%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)
#### Post date: [May 30, 2014, 7:34pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-common-terms-query-vs-match-query-with-cutoff-frequency-set/17466/3 "2014-05-30T19:34:09Z")

</div>

They should produce the same exact query (CommonTermsQuery). The only thing  
I can think of that is different is the CommonTerms query provides more  
options other than just the cutoff\_frequency (i.e. low\_freq\_operator,  
high\_freq\_operator, etc) which are not available in the Match query. I do  
not know of any plans to "merge/rollup" the two so for now, they remain  
separate.

--  
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/46abca65-48ce-4a85-972f-069a2e7df30e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/46abca65-48ce-4a85-972f-069a2e7df30e%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:25am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-common-terms-query-vs-match-query-with-cutoff-frequency-set/17466/4 "2017-07-06T01:25:39Z")

</div>


