Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 26, 2020 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/dc57ba572a0c882d060017f9271dca5b to your computer and use it in GitHub Desktop.
Save velotiotech/dc57ba572a0c882d060017f9271dca5b to your computer and use it in GitHub Desktop.
ES: non_analyzer_query
{
  "query": {
    "bool": {
      "should": [
        {
          "regexp": {
            "email.raw": ".*brad_pitt.*"
          }
        },
        {
          "regexp": {
            "name.raw": ".*brad.*"
          }
        }
      ]
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment