The null_value is not used as a "default value", but as a value to used when doing searching or aggregations.
For instance, in your mapping, your document will match if you have a filter like this: ['term' => ['barfield' => 0]], however it won't return the barfield property if it is null. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8a652e81-2b87-4857-a06c-c522c0fa7bc4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
