Looking for a way to initialize ELS instance (need more than elasticsearch.yml params).
I want to put some restrictions as some templates at start time.
My problem is this may you have a better solution:
I want to disable dynamic mapping because I want to have my own mapping. I provide an endpoint in my application for this and if a user calls that endpoint before inserting any document, we will have our own mapping and that is ok. But the problem, that there is no guarantee for that. Because of that I first decided to globally put this to false
index.mapper.dynamic = false
But it is a global limitation which I don't want for some other Indices in the same ELS instance.
Then I thought maybe there is a way to run some scripts on elasticsearch (adding some templates applicable just for some indices not all) at start time. Is there something like that?
Sorry for the long story
Thanks in advance