Duplicate conditions in bool query

Hi,
I'd like to know if having duplicate conditions in a bool query matters and makes the query slower, or that Elasticsearch knows how to ignore those duplicates.
Example for such a query:

GET /events-04357d39-96b5-4c56-b684-896a7885824c-2020.06/_search
{
  "query": {
    "bool": {
      "must_not": [
        {
          "term": {
            "fileInfo.publisher.keyword": "Microsoft Corporation"
            }
        },
        {
          "term": {
            "fileInfo.publisher.keyword": "Microsoft Corporation"
            }
        },
        {
          "term": {
            "fileInfo.publisher.keyword": "Microsoft Corporation"
            }
        }
      ]
    }
  }    
}

Regards,
Ori.

Hello,
Any answer on this?
Thanks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.