原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/query-dsl-span-containing-query.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/query-dsl-span-containing-query.html
本地英文版地址: ../en/query-dsl-span-containing-query.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
返回包含另一个 span 查询的匹配。
span 包含查询对应 Lucene 的 SpanContainingQuery。这里有一个例子:
GET /_search
{
"query": {
"span_containing" : {
"little" : {
"span_term" : { "field1" : "foo" }
},
"big" : {
"span_near" : {
"clauses" : [
{ "span_term" : { "field1" : "bar" } },
{ "span_term" : { "field1" : "baz" } }
],
"slop" : 5,
"in_order" : true
}
}
}
}
}
big 和 little 子句可以是任何 span 类型的查询。
返回 big 中包含 little 中匹配项的匹配的 span。