Find empty strings in elasticsearch

前端 未结 6 1311
盖世英雄少女心
盖世英雄少女心 2021-01-18 14:58

I\'m trying to _search documents that has some specific value in the field.

{
  \"query\": {
      \"bool\": {
        \"must\": [
         {\"f         


        
6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 15:33

    Try using must_not with missing in your bool:

    "must_not":{
      "missing":{
        "field":"advs.status",
        "existence":true,
        "null_value":true
      }
    }
    

提交回复
热议问题