-
Notifications
You must be signed in to change notification settings - Fork 732
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
Add reindex method to index class #473
Comments
My suggestion is that this is something that should go into Elastica\Util as it is not directly an "index" function that can be called in Elasticsearch but a specific implementation. You pass the old and new index name and the magic is going to happen. What do you think? |
@Tobion, did you complete your function to provide reindex functionality to Elastica? I am looking at possibly doing the same thing, but came across your post and wondered if you had got any further with it? Thanks, Russell |
@russellseymour As far as I know it is not in Elastica yet. So it would be very nice if you could pick it up. |
@Tobion Any updates? |
+1 |
We just added reindexing at work using scan and scroll, I'll spend some time to extract it into Elastica\Util and make a pull request :) |
@michellesanver Looking forward to it. |
There should probably be a method in reindex all documents from one index into a new index. This is needed when one wants to change the mapping with no downtime. See http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime/
Several other client libraries already include that functionality:
Early draft. For some reason I get a Java exception inside elastic search as soon as there are documents in the old index.
The method is missing arguments to optionally overwrite the mapping and settings for the new index. Otherwise it would just be a copy.
The text was updated successfully, but these errors were encountered: