Interface ParentIdCondition

根据父文档ID返回子文档

Example


import * as es from 'es'
let client=es.newClient('axis_esClient')
let parentID: es.ParentIdCondition = {
type: "my-child",
id: "1"
}
let querydsl:es.Query={
"parent_id":parentID
}
let cnt = client.updateByQuery("indexName", querydsl, "newScript")
interface ParentIdCondition {
    boost?: number;
    id: string;
    ignore_unmapped?: boolean;
    type: string;
}

Properties

boost?: number

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

id: string

id:父文档的ID

ignore_unmapped?: boolean

ignore_unmapped:指示是否忽略未映射type并且不返回任何文档而不返回错误。

type: string

type:映射到连接字段的子关系的名称