Find documents with empty string value on elasticsearch

前端 未结 12 2124
不知归路
不知归路 2020-12-03 09:46

I\'ve been trying to filter with elasticsearch only those documents that contains an empty string in its body. So far I\'m having no luck.

Before I go on, I should

12条回答
  •  星月不相逢
    2020-12-03 10:20

    OR using lucene query string syntax

    q=yourfield.keyword:""

    See Elastic Search Reference https://www.elastic.co/guide/en/elasticsearch/reference/6.5/query-dsl-query-string-query.html#query-string-syntax

提交回复
热议问题