Find empty strings in elasticsearch

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

    the "missing" does work only for null values or not being there at all. Matching empty string was already answered here: https://stackoverflow.com/a/25562877/155708

提交回复
热议问题