How to found empty field in elasticsearch

Hi
we have a mistake when insert data.
a field data type is text . we insert "" for data.
i cant search zero length field .
how can found like this record?

It would be better to reindex correctly.

Unfortunately for text type you can't search out empty strings. You can use the exists query and fetch all the document for which that field exists and perform an empty string comparison at the application layer.

You can take a look at a similar post here.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.