Create a query that looks for list of names/numbers

cIs there a way i can use a query like below to look for any name like this GY-CAD2-10C-001, rather than creating a filter and writing in 30-50 entries, can you create a query that will look for the all that start with GY-CAD2-10C-???
Hope im making sense.

{
  "query": {
    "bool": {
      "should": [
        {
          "match_phrase": {
            "properties.term id.raw": "GY-CAD2-10C-***"
          }
        }
      ],
      "minimum_should_match": 1
    }
  }
}

Not sure if you are talking about creating a filter in Kibana. If that is the case you can create a filter and switch from the guided user interface to write your own DSL query

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