Interface WildcardCondition

返回包含与通配符模式匹配的术语的文档。

Example


import * as es from 'es'
let client=es.newClient('axis_esClient')
let wildcard: es.WildcardCondition = {
"user": {
"value": "ki*y",
boost: 1.0,
rewrite: "constant_score"
}
}
let querydsl:es.Query={
"wildcard":wildcard
}
let cnt = client.updateByQuery("indexName", querydsl, "newScript")
interface WildcardCondition {
    [name: string]: {
        boost?: number;
        case_insensitive?: string;
        rewrite?: string;
        value?: string;
    };
}

Indexable

[name: string]: {
    boost?: number;
    case_insensitive?: string;
    rewrite?: string;
    value?: string;
}

name:查询的字段名

  • Optional boost?: number

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

  • Optional case_insensitive?: string

    case_insensitive:是否允许模式与索引字段值进行不区分大小写的匹配

  • Optional rewrite?: string

    rewrite:用于重写查询的方法

  • Optional value?: string