基于match查询实现多字段查询。
import * as es from 'es' let client=es.newClient('axis_esClient') let multiMatch: es.MultiMatchCondition = { query: "this is a test", fields: ["subject", "message"] } let querydsl:es.Query={ "multi_match":multiMatch } let cnt = client.updateByQuery("indexName", querydsl, "newScript")
boost: 浮点数,用作与筛选器查询匹配的每个文档的常量相关性分数。
operator: And OR Or
基于match查询实现多字段查询。