How to don't save empty fields in elastic search?

Hi .
i want store data in elastic search with regardless empty data in some fields.
if a filed be empty don't store this filed.

can you help me ?

If the field is empty it won't be indexed.
But it will remain as part of the source document as elasticsearch does not touch the JSON you are sending.

You should just control that in your application, that'd be much better.

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