Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 26, 2020 11:05
Show Gist options
  • Save velotiotech/ca4b5a33981141998f4d7a9b6b92cde0 to your computer and use it in GitHub Desktop.
Save velotiotech/ca4b5a33981141998f4d7a9b6b92cde0 to your computer and use it in GitHub Desktop.
ES: filter query
{
  "query": {
    "bool": {
      "filter": {
        "bool": {
          "must": [
            {
              "multi_match": {
                "query": "brad",
                "fields": [
                  "email.suggestion",
                  "full_name.suggestion"
                ]
              }
            }
          ]
        }
      }
    }
  },
  "size": 25
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment