Skip to content
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 - "type" templates #5310

Closed
rore opened this issue Mar 1, 2014 · 1 comment
Closed

Feature request - "type" templates #5310

rore opened this issue Mar 1, 2014 · 1 comment

Comments

@rore
Copy link

rore commented Mar 1, 2014

Currently it's possible to define an index level template which gets applied when a new index is created, and a default template which is applied to all types.

We see a need for type templates - this is a template that gets applies when a new type is created - even if it's not in the context of a new index.

I'll explain the use case: we have several types in the system, each has a set of fields that needs to be defined every time the type is created.
We define those type in a template that gets applied when indexes are created. But sometimes we need to delete a type (with all its data) and recreate it. When we do that our template is not applied - since it's not a new index - and we need to explicitly put the mapping for the type. It would be much more consistent if we can define a template for the type that would be applied whenever the type is created.

@clintongormley
Copy link
Contributor

Hi @rore

Sorry it has taken a while to get to this one. With #8877 we are planning on removing the ability to delete types, and with #8871 types will essentially become collections of fields whose definition (internally) lives at the index level. These changes remove the need for type templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants