返回包含与通配符模式匹配的术语的文档。
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") Copy
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")
name:查询的字段名
Optional
boost:浮点数,用作与筛选器查询匹配的每个文档的常量相关性分数。
case_insensitive:是否允许模式与索引字段值进行不区分大小写的匹配
rewrite:用于重写查询的方法
返回包含与通配符模式匹配的术语的文档。
Example