Elasticsearch match vs. term in filter
问题 I don't see any difference between term and match in filter: POST /admin/_search { "query": { "bool": { "filter": [ { "term": { "partnumber": "j1knd" } } ] } } } And the result contains not exactly matched partnumbers too, e.g.: "52527.J1KND-H" Why? 回答1: Term queries are not analyzed and mean whatever you send will be used as it is to match the tokens in the inverted index, while match queries are analyzed and the same analyzer applied on the fields, which is used at index time and