Query DSL- Exists Query
Exists Query 存在查询 Returns documents that contain an indexed value for a field. 返回字段中包含索引值的文档。 An indexed value may not exist for a document’s field due to a variety of reasons: 由于多种原因,索引值可能不存在于文档的字段中: The field in the source JSON is null or [] The field has "index" : false set in the mapping The length of the field value exceeded an ignore_above setting in the mapping The field value was malformed and ignore_malformed was defined in the mapping 源JSON中的字段是 null 或 [] 字段在mapping中设置为 "index" : false 字段值的长度超出了mapping中设置的 ignore_above 字段值格式错误,并且mapping中设置的了 ignore_malformed Example request edit GET