Link Search Menu Expand Document

Regex

GET /_search
{
  "query": {
    "regexp": {
      "user.id": {
        "value": "k.*y",
        "flags": "ALL",
        "max_determinized_states": 10000,
        "rewrite": "constant_score"
      }
    }
  }
}
  • The following search returns documents where the user.id field contains any term that begins with k and ends with y.
  • The .* operators match any characters of any length, including no characters. Matching terms can include ky, kay, and kimchy.

Related


Copyright © 2020 Thence LLC