【发布时间】:2016-10-06 10:33:32
【问题描述】:
我正在对运行正常的过滤器使用文档查询。当我尝试使用查询 ID 过滤过滤器查询时,它不会返回任何结果。例如:
{
"doc" : {
"text" : "This is the text within my document"
},
"highlight" : {
"order" : "score",
"pre_tags" : ["<example>"],
"post_tags" : ["</example>"],
"fields" : {
"text" : { "number_of_fragments" : 0 }
}
},
"filter":{"ids":{"values":[11,15]}}
,
"size" : 100
}
我确定这些 id 是正确的,但总是获得"matches" : [ ]。当我不使用过滤器时,ES 会检索正确的匹配项。
感谢您的帮助。
【问题讨论】:
标签: elasticsearch