Interface HasChildCondition

返回与查询条件匹配的子文档的父文档。

Example


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")
interface HasChildCondition {
    boost?: number;
    max_children?: number;
    min_children?: number;
    query: "es".Query;
    score_mode?: string;
    short_circuit_cutoff?: number;
    type: string;
}

Properties

boost?: number

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

max_children?: number

max_childrem: 与返回的父文档的查询相匹配所需的子文档的最大数量。

min_children?: number

min_children: 与返回的父文档的查询相匹配所需的子文档的最小数量。

query: "es".Query

query: 查询子文档的条件语句。

score_mode?: string

score_mode: 指示匹配子文档的分数如何影响根父文档的相关性分数。

short_circuit_cutoff?: number
type: string

type: 在关联关系中子文档的类型。