Skip to content

Instantly share code, notes, and snippets.

@pierDipi
Last active August 12, 2020 15:00
Show Gist options
  • Save pierDipi/3f5e84929ac31758991b6721280ec980 to your computer and use it in GitHub Desktop.
Save pierDipi/3f5e84929ac31758991b6721280ec980 to your computer and use it in GitHub Desktop.
{
  "filter": {
    "must": {
      "time": {
        "range": {
          "gte": "<time>",
          "lte": "<time>",
          "lt": "<time>",
          "gt": "<time>"
        }
      },
      "type": {
        "terms": [
          "<your_type_1>",
          "<your_type_2>"
        ]
      }
    },
    "must_not": {
      "source": {
        "terms": [
          "<your_source_1>",
          "<your_source_2>",
        ],
        "prefix": [
          "com",
          "it"
        ],
        "wildcards": [
          "eu.*",
          "us.*",
        ]
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment