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

_reindex implementation #594

Closed
benone opened this issue Oct 28, 2017 · 1 comment
Closed

_reindex implementation #594

benone opened this issue Oct 28, 2017 · 1 comment

Comments

@benone
Copy link

benone commented Oct 28, 2017

_reindex is much faster than standard import.

I think It can be implemented like that:
client.perform_request('POST', "_reindex", {}, { source: { index: general_name }, dest: { index: suffixed_name } })

Here:
https://github.com/toptal/chewy/blob/master/lib/chewy/index/actions.rb#L180

@pyromaniac
Copy link
Contributor

Yeah, sure, can you prepare a PR please?

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

No branches or pull requests

3 participants