跨度优先查询
import * as es from 'es'let client=es.newClient('axis_esClient')let spanFirst: es.SpanFirstCondition = { match: { "spanTerm": { "user": "kimchy" } }, end: 3}let querydsl:es.Query={ "span_first":spanFirst}let cnt = client.updateByQuery("indexName", querydsl, "newScript") Copy
import * as es from 'es'let client=es.newClient('axis_esClient')let spanFirst: es.SpanFirstCondition = { match: { "spanTerm": { "user": "kimchy" } }, end: 3}let querydsl:es.Query={ "span_first":spanFirst}let cnt = client.updateByQuery("indexName", querydsl, "newScript")
Optional
boost: 浮点数,用作与筛选器查询匹配的每个文档的常量相关性分数。
end:最大查询数量
match:span类型的查询。
query_name:筛选器的查询名称,在每次命中搜索match_filters时可以使用该筛选器
跨度优先查询
Example