Elasticsearch declare field as null

I would like to declare a field to null not with null_value.

Are "" and null equivalent? If I do not write anything to field, will ES set set the null automatically?

Is empty string stored in doc?

If I do not write anything to field, will ES set set the null automatically?

Yes. And that's the best approach.

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