返回指定字段值不为空的文档。
import * as es from 'es'let client=es.newClient('axis_esClient')let exists: es.ExistsCondition = { "field": "user"}let querydsl:es.Query={ "exists":exists}let cnt = client.updateByQuery("indexName", querydsl, "newScript") Copy
import * as es from 'es'let client=es.newClient('axis_esClient')let exists: es.ExistsCondition = { "field": "user"}let querydsl:es.Query={ "exists":exists}let cnt = client.updateByQuery("indexName", querydsl, "newScript")
field: 需要查询的字段名
返回指定字段值不为空的文档。
Example