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

Allow deletion of document types from an index #16207

Closed
bharvidixit opened this issue Jan 25, 2016 · 3 comments
Closed

Allow deletion of document types from an index #16207

bharvidixit opened this issue Jan 25, 2016 · 3 comments

Comments

@bharvidixit
Copy link

This is in the reference of issue #8877
@clintongormley I agree that there are internal issue of deleting types but it is one of the widely used feature too. Since, if an index contains more than one type and you are not allowing the users to delete a single type from it, users are forced to re-index complete data of other types first in a new index. I think this features should be enabled with putting some constraints rather than completely removing it from elasticsearch. In any data store one should be able to delete a collection/table/type at any time.

@jpountz
Copy link
Contributor

jpountz commented Jan 25, 2016

The reason why we removed the ability to delete types is that Lucene does not support removing fields. We could potentially add it back if we divorced mappings from types (as mentioned on #15613), but I suspect this would just change your problem from "Allow deletion of types" to "Allow deletion of fields", which we can't solve: it is a natural limitation of the data-structures that Lucene is using to store data.

@clintongormley
Copy link
Contributor

Instead we're adding a reindex API which will make it easier for you to do the right thing. See #15201

@jasontedor
Copy link
Member

In any data store one should be able to delete a collection/table/type at any time.

The analogy to database tables, while one that has been made in the past, is broken. See Index vs. Type.

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

4 participants