Customize default mapping of elasticsearch

(Pranav) #1

Hi everyone,

I want to change default mapping provided by elasticsearch for a index.

When I am creating any index, I am providing mapping for known fields which I know will come inside that index. But there are some extra fields which can be indexed at run time, I want to set mapping for them whenever they are added.
Elasticsearch version -6.3.2

(Abdon Pijpelink) #2

Take a look at dynamic templates. Dynamic templates allow you to change the default mapping of unmapped fields, based on the name or JSON type of that field.

(system) #3

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