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.