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 ENV variable to name index by default #938

Open
loqimean opened this issue Apr 16, 2024 · 1 comment
Open

Use ENV variable to name index by default #938

loqimean opened this issue Apr 16, 2024 · 1 comment

Comments

@loqimean
Copy link

Is your feature request related to a problem? Please describe.

I'm always frustrated when I run the tests and my DEV index is reset (because I need real ElasticSearch index testing). So, I solved it after ~2 years by setting name pattern in an initializer. There is too many devs who has this problem and don't know about solution, especially when it's a dev who started using ES and just development.

Describe the solution you'd like

Would be fine to provide built-in patter of naming indexes that use something like this:

Chewy.settings = { prefix: Rails.env }

Describe alternatives you've considered

nothing

Additional context

nothing

@loqimean
Copy link
Author

I gues would be fine to do that not only for rails. If it is relevant, I can open a PR to solve it

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