Find empty strings in elasticsearch

前端 未结 6 1313
盖世英雄少女心
盖世英雄少女心 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:22

    Or another way to do the same thing more efficiently is to use the exists filter:

    "exists" : {
      "field" : "advs.status"
    }
    

    Both are valid, but this one is better :)

提交回复
热议问题