Can someone explain to me what the difference between must_not and filter is in elasticsearch?
E.g. here (taken from elasticsearch definitive guide), why isn\'t must_not
The filter
is used when the matched documents need to be shown in the result, while must_not
is used when the matched documents will not be shown in the results. For further analysis:
filter:
must_not: