Interface SpanFirstCondition

跨度优先查询

Example


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")
interface SpanFirstCondition {
    boost?: number;
    end: number;
    match?: "es".Query;
    query_name?: string;
}

Properties

boost?: number

boost: 浮点数,用作与筛选器查询匹配的每个文档的常量相关性分数。

end: number

end:最大查询数量

match?: "es".Query

match:span类型的查询。

query_name?: string

query_name:筛选器的查询名称,在每次命中搜索match_filters时可以使用该筛选器