0

not able to get the results with the below syntax in the current version.

{
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "cid": {
              "query": [
                "TEST"
              ]
            }
          }
        }
      ]
    }
  }
}
Ajay Takur
  • 6,079
  • 5
  • 39
  • 55

1 Answers1

0

If you look up the documentation for the match query, you'll see that the query parameter takes a string and not an array:

{
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "cid": {
              "query": "TEST"
            }
          }
        }
      ]
    }
  }
}

PS: You should really spend some time in the documentation to learn how to craft those queries, it would really help you.

Val
  • 207,596
  • 13
  • 358
  • 360