Elastic search default values for a field


Is it possible to assign default values for a field , when a document does not have that field treat it as default assigned and process.

This is different from null_value where we need to explicitly set null for a field so that replaced value should be taken ?, Is it possible without explicit setting null ?


setting something like a default value needs to be done before a document is indexed. You might want to use a pipeline for that or enrich the document in your application.


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