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

How to import into two clusters #1054

Open
jesseduffield opened this issue Apr 4, 2023 · 0 comments
Open

How to import into two clusters #1054

jesseduffield opened this issue Apr 4, 2023 · 0 comments

Comments

@jesseduffield
Copy link

I'm upgrading from cluster version 2.4 to 7.17 and rather than do the upgrade in-place, I'm standing up two clusters and writing to both with the plan of eventually removing the old cluster.

I'm using the repository pattern to do this which is working well for creating individual documents in ES, however I'm not sure how to achieve the same behaviour when it comes to importing ActiveRecord objects in bulk.

Currently I'm going 'MyModel.import(...)' but I want a way of either:

  • importing via my two repositories (which have their own index_name and client defined)
  • passing the ES client into the import method as an argument (the import method currently takes an index_name argument, but not a client argument).

I'm using version 7.2.1 of the gem.

How could I go about this? Thanks.

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

1 participant