Setting mapping fields limit to over 1000 for all indices


#1

Hi!
Is there a way to configure elasticsearch before creating any index, that when an index will be created, it will be created with other number than 1000 in its fields mapping limit?
Or do I have to set the mapping for each index i'm creating?
Thanks!


(Christian Dahlqvist) #2

You can set it in an index template.


#3

Hi, thanks for the answer.
Index template limits the index structure that the template will be applied to, isn't it?
I thought maybe there is a configuration line to be added to the elasticsearch.yml that can sort it out. Is there?


(Christian Dahlqvist) #4

Index templates can specify index settings, e.g. shard count, compression mode and field limits, as well as mappings. Exactly what you specify is up to you.


#5

OK. Thanks


(system) #6

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