-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: a way to require index creation from template. #23463
Comments
@glycerine I think that #20640 would meet your requirements. In this case, you would remove the default template that matches |
Hi @jasontedor, thanks for pointing out #20640. I think that the suggestion works... I'm just trying to piece it all together. The docs are a little confusing because https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#index-creation says
Q: In the example just above, the aaa* would be referring to... is that a regex to match an index name? It would help to be discussing a specific example. Lets ask this: to accomplish the desired goal expressed in this ticket, what would be the steps, the precise protocol, to activate the "no-new-index-without-a-template" Step 1, step 2, step 3... |
Yes, it's a regex.
Given the proposal in #20640, it would be only to remove the default template that matches
you would also want to disable dynamic mapping ( |
Duplicates #20640 |
There should be a way to tell elastic search to not create an index without using a template for the mapping.
As we roll to a new index at the start of each day, I like and utilize the "automatic" index creation upon first write to a new index very useful.
However, and this may be subtle: I really, really don't want elasticsearch (ES) to be guessing about the types of fields. I always want it to be creating an index based on a pre-existing template for the mapping.
I've been bitten very badly by elasticsearch's guessing the types of fields in the record, and therefore we would find it highly desirable to have a way to turn off that particular feature.
So the feature request is: some new setting, whenever an index is created, it must be from a template mapping, and the mapping should never be guessed at. ES should fail to create the new index if a matching template is not available, and no data should be writable to that (absent) index.
In other words, I want ES to always be using a template, or to fail to write and create a new index if there is no appropriate template available.
The text was updated successfully, but these errors were encountered: