ElasticSearch: 查询不存在指定字段的数据

不存在note字段的数据:

1
2
3
4
5
6
7
8
9
10
11
12
GET /es_info/_search
{
    "query": {
        "bool": {
            "must_not": {
                "exists": {
                    "field": "note"
                }
            }
        }
    }
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

*

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据