Skip to content

Instantly share code, notes, and snippets.

@TomonoriSoejima
Last active November 6, 2020 12:25
Show Gist options
  • Save TomonoriSoejima/88fa13d1c813e2d9c16206f7d39f1af6 to your computer and use it in GitHub Desktop.
Save TomonoriSoejima/88fa13d1c813e2d9c16206f7d39f1af6 to your computer and use it in GitHub Desktop.
alex test
PUT test/_doc/1
{
  "message" : "Port XX/XX flood control mc stop action"
}

PUT test/_doc/2
{
  "message" : "Port XX/XX flood control mc start action"
}

PUT test/_doc/3
{
  "message" : "Port XX/XX flood control bc stop action"
}

PUT test/_doc/4
{
  "message" : "Port XX/XX flood control bc start action"
}

GET test/_search
{
  "query": {
    "bool": {
      "must_not": [
        {
          "match": {
            "message": "flood control mc start action"
          }
        },
        {
          "match": {
            "message": "flood control mc stop action"
          }
        }
      ]
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment