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

Mapping changing from custom mapping to dynamic when drop_collection = true #105

Closed
dittu opened this issue Jul 17, 2013 · 2 comments
Closed
Labels

Comments

@dittu
Copy link

dittu commented Jul 17, 2013

Hi,

I have set drop_collection = true in my river settings with custom mapping for index. Until the index comes across the drop collection in oplog mapping is staying dynamic but when it performs drop collection then mapping is deleted and dynamic mapping is occurring which is causing some issues in indexing due to which the whole collection is not being indexed.

Thanks for looking into all the issues I keep on posting.

Thanks,

Aditya

@richardwilly98
Copy link
Owner

Hi,

You are correct... The most efficient way to delete all documents from a type in ES is to delete the mapping but unfortunately the river does not captured the mapping between to delete and reapply it.
I will look at this issue.

In the meantime if you are using admin indices templates [1] I believe that should address this issue.

[1] - http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/

Thanks,
Richard.

richardwilly98 added a commit that referenced this issue Jul 30, 2013
@richardwilly98
Copy link
Owner

Fix available in release 1.7.0.

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

No branches or pull requests

2 participants