Skip to content

Instantly share code, notes, and snippets.

@snehalshinde-vel
Last active July 28, 2019 14:52
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 snehalshinde-vel/817e5af57e55596de01b23fc4101e7e6 to your computer and use it in GitHub Desktop.
Save snehalshinde-vel/817e5af57e55596de01b23fc4101e7e6 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