How to use revered word at DSL filter terms property

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

{
  "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?

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.

@dadoonet Immediately, I'll update it

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

Not sure what your problem is.

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