Filter Identifiers

Koncorde filter identifiers are generated from the filters provided in the DSL, this guarantees that different filters that match the same scope will have the same identifier.

For example, both these filters will have the same filter identifier:

{
  "and": [
    {
      "not": {
        "in": {"some_document_field": ["foo", "bar"]}
      }
    },
    {"missing": {"field": "another_field"}}
  ]
}

And:

{
  "not": {
    "or": [
      {
        "or": [
          {"equals": {"some_document_field": "foo"}},
          {"equals": {"some_document_field": "bar"}}
        ]
      },
      {"exists": {"field": "another_field"}}
    ]
  }
}

For more information, please refer to the Koncorde documentation.