Elasticsearch declare field as null


(Hilal) #1

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?


(David Pilato) #2

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

Yes. And that's the best approach.


(system) #3

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