行动是治愈恐惧的良药,而犹豫、拖延将不断滋养恐惧。

ElasticSearch 5.x missing解决方案

Elasticsearch | 作者 songjian0270 | 发布于2017年04月27日 | 阅读数:5807

ElasticSearch 5.x missing不存在了,应该使用什么参数了呢
已邀请:

kennywu76 - Wood

赞同来自: medcl

使用exists + must_not
GET /_search
{
"query": {
"bool": {
"must_not": {
"exists": {
"field": "user"
}
}
}
}
}


 

qweas11

赞同来自:


"should": [
        {
          "exists": {
            "field": "acls"
          }
        }
]
可以这样子写 ,但是无法把must_not放在should里面 ,不知道是否有其他解决方式!?

要回复问题请先登录注册