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

Use Repo pattern for configuration #9

Closed
danielberkompas opened this issue Mar 5, 2018 · 1 comment
Closed

Use Repo pattern for configuration #9

danielberkompas opened this issue Mar 5, 2018 · 1 comment
Assignees

Comments

@danielberkompas
Copy link
Owner

Some applications might want to talk to multiple separate Elasticsearch stores. The current configuration strategy assumes that you only have one Elasticsearch endpoint.

We should take a page from Ecto's book and allow you to configure multiple Elasticsearch "Repos", something like this:

defmodule MyApp.Elasticsearch do
  use Elasticsearch, otp_app: :my_app
end

You'd then configure MyApp.Elasticsearch like we do now. This would allow a single app (or separate apps within Umbrella apps) to talk to multiple endpoints.

@danielberkompas
Copy link
Owner Author

This is addressed in v0.2.0.

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

1 participant