请问为甚么下面的查询语句能查到filter对应的数据 明明filter过滤出来的字段中并没有query 语句中的“门头沟” 字段

Elasticsearch | 作者 huangmingzhi | 发布于2019年06月20日 | 阅读数:154

{
"from" : 0,
"size" : 40,
"timeout" : "100000ms",
"query" : {
"bool" : {
"must" : [
{
"multi_match" : {
"query" : "门头沟",
"fields" : [
"operation_remark^1.0",
"search_txt^1.0"
],
"type" : "best_fields",
"operator" : "OR",
"slop" : 0,
"prefix_length" : 0,
"max_expansions" : 50,
"lenient" : false,
"zero_terms_query" : "NONE",
"boost" : 1.0
}
}
],
"filter" : [
{
"bool" : {
"must" : [
{
"term" : {
"order_type" : {
"value" : 1,
"boost" : 1.0
}
}
},
{
"term" : {
"work_id" : {
"value" : 7056138,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
}
已邀请:

要回复问题请先登录注册