返回与查询条件匹配的子文档的父文档。
import * as es from 'es' let client=es.newClient('axis_esClient') let hasChild: es.HasChildCondition = { "type": "child", "query": { "match_all": {} }, "max_children": 10, "min_children": 2, score_mode: "min" } let querydsl:es.Query={ "has_child":hasChild } let cnt = client.updateByQuery("indexName", querydsl, "newScript")
boost: 浮点数,用作与筛选器查询匹配的每个文档的常量相关性分数。
max_childrem: 与返回的父文档的查询相匹配所需的子文档的最大数量。
min_children: 与返回的父文档的查询相匹配所需的子文档的最小数量。
query: 查询子文档的条件语句。
score_mode: 指示匹配子文档的分数如何影响根父文档的相关性分数。
type: 在关联关系中子文档的类型。
返回与查询条件匹配的子文档的父文档。