Interface PinnedCondition

提升所选文档的排名,使其高于与给定查询匹配的文档。

Example


import * as es from 'es'
let client=es.newClient('axis_esClient')
let pinned: es.PinnedCondition = {
ids: ["1", "4", "100"],
organic: {
"match": {
"description": "iphone"
}
}
}
let querydsl:es.Query={
"pinned":pinned
}
let cnt = client.updateByQuery("indexName", querydsl, "newScript")
interface PinnedCondition {
    ids?: string[];
    organic?: "es".Query;
}

Properties

Properties

ids?: string[]

ids:文档id数组

organic?: "es".Query

organic:用于对文档进行排名的任何查询选择