Terms Queryedit
Filters documents that have fields that match any of the provided terms (not analyzed). For example:
{ "ids" : { "type" : "my_type", "values" : ["1", "4", "100"] } } 查询id 为 1 ,4 ,100
{ "constant_score" : { "filter" : { "terms" : { "user" : ["kimchy", "elasticsearch"]} } } }针对 not analyzed 准确查询{ "constant_score" : { "filter" : { "missing" : { "field" : "user" } } } } 查询字段user 不存在的 document