Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PercolatorCondition

查询可用于匹配存储在索引中的查询。

example

import * as es from 'es' 
let client=es.newClient('axis_esClient')
let percolate: es.PercolatorCondition = {
    field: "query",
    document: {
        "message": "A new bonsai tree in the office"
    }
}
let querydsl:es.Query={
    "percolate":percolate
}
let cnt = client.updateByQuery("indexName", querydsl, "newScript")

Hierarchy

  • PercolatorCondition

Index

Properties

Optional document

document: unknown

document:被渗透的文档的来源

Optional document_type

document_type: string

document_type:文档的类型或映射

Optional documents

documents: unknown[]

documents?:被渗透的文档的来源数组

field

field: string

field:percolator类型的字段

Optional id

id: string

id:文档的 ID

Optional index

index: string

index:文档所在的索引。

Optional name

name: string

name:指定_percolator_document_slot多个查询时字段的后缀。

Optional preference

preference: string

preference:优先用于获取要渗透的文档。

Optional routing

routing: string

routing:获取要渗透的文档的路由

Optional type

type: string

type:要获取的文档的类型

Optional version

version: number

version:要获取的文档的预期版本。