Skip to content

Use ENV variable to name index by default #938

@loqimean

Description

@loqimean

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions