# Does it give any meaning to combine cutoff\_frequency with the and operator?

**URL:** <https://discuss.elastic.co/t/does-it-give-any-meaning-to-combine-cutoff-frequency-with-the-and-operator/81609>\
**Category:** Elasticsearch\
**Created:** [April 7, 2017, 1:00pm UTC](https://discuss.elastic.co/t/does-it-give-any-meaning-to-combine-cutoff-frequency-with-the-and-operator/81609 "2017-04-07T13:00:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karolinebryn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karolinebryn/32/17095_2.png) [@Karolinebryn](https://discuss.elastic.co/u/Karolinebryn)\
**Post date:** [April 7, 2017, 1:00pm UTC](https://discuss.elastic.co/t/does-it-give-any-meaning-to-combine-cutoff-frequency-with-the-and-operator/81609/1 "2017-04-07T13:00:16Z")

</div>

I have come across some elasticsearch queries combining cutoff\_frequency with the "and" operator, but this does not make sense to me.

This is part of the bool query:

```
  {
    "match": {
      "content": {
        "query": "I has candy and cake",
        "cutoff_frequency": 0.001,
        "operator": "and"
      }
    }
  }

```

And according to [this documentation](https://www.elastic.co/guide/en/elasticsearch/guide/current/common-terms.html) the cutoff\_frequency will (depending on the documents, but most likely) transform this into the following;

```
{
  "bool": {
    "must": { 
      "bool": {
        "should": [
          { "term": { "text": "candy" }},
          { "term": { "text": "cake" }}
        ]
      }
    },
    "should": { 
      "bool": {
        "should": [
          { "term": { "text": "I" }},
          { "term": { "text": "has" }},
          { "term": { "text": "and" }}
        ]
      }
    }
  }
}

```

But what happens since there is an "and" operator added to the query? Does this mean that the "cutoff\_frequency" has no effect?

---

<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:** [May 5, 2017, 1:14pm UTC](https://discuss.elastic.co/t/does-it-give-any-meaning-to-combine-cutoff-frequency-with-the-and-operator/81609/2 "2017-05-05T13:14:10Z")

</div>

Closed on May 5, 2017, 1:14pm UTC

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