# How to use revered word at DSL filter terms property

**URL:** <https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466>\
**Category:** Elasticsearch\
**Created:** [May 3, 2019, 5:02am UTC](https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466 "2019-05-03T05:02:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drake-jin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drake-jin/32/45472_2.png) [@drake-jin](https://discuss.elastic.co/u/drake-jin)\
**Post date:** [May 3, 2019, 5:02am UTC](https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466/1 "2019-05-03T05:02:13Z")

</div>

When I update `2.3.1` to `6.7.1` Elasticsearch version.  
ASIS DSL Query looks like below the image

```auto
{
  "min_score": 0.9,
  "query": {
    "bool": {
      "must": {
        "multi_match": {
          "query": "Bisket",
          "fields": [
            "title^2",
            "content"
          ],
          "minimum_should_match": "100%"
        }
      },
      "filter": [
        {
          "term": {
            "visible": true
          }
        },
        {
          "terms": {
            "type": [
              "Cookie",
              "Bread"
            ]
          }
        },
        {
          "terms": {
            "publish_range": [
              1,
              2,
              3,
              4
            ]
          }
        }
      ]
    }
  }
}

```

I wanna use this property name `type` in terms but, the DSL property name 'terms' has reserved word that `type` maybe.

How can I use the property name `type` on my DSL Query?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 3, 2019, 5:28am UTC](https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466/2 "2019-05-03T05:28:09Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

---

<div class="post-metadata">

**Author:** ![drake-jin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drake-jin/32/45472_2.png) [@drake-jin](https://discuss.elastic.co/u/drake-jin)\
**Post date:** [May 3, 2019, 5:28am UTC](https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466/3 "2019-05-03T05:28:49Z")

</div>

@dadoonet Immediately, I'll update it

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 3, 2019, 6:27am UTC](https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466/4 "2019-05-03T06:27:41Z")

</div>

I don't see type as an option here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html)

Not sure what your problem is.

---

<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 31, 2019, 6:27am UTC](https://discuss.elastic.co/t/how-to-use-revered-word-at-dsl-filter-terms-property/179466/5 "2019-05-31T06:27:41Z")

</div>

Closed on May 31, 2019, 6:27am UTC

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