You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the default index name and the custom index name are the same in all environments. This causes updates triggered in eg. test mode to update data/indexes in the other environment as well.
A suggestion could be to add a suffix to the index name, like this:
This makes a lot of sense. Even better would be to allow the user to independent elasticsearch configurations for each environment. Something like this:
config/elasticsearch.yml
production:
host: 192.134.321.121:9200
prefix: production
development:
host: 192.134.321.121:9200
prefix: development
test:
host: localhost:9200
prefix: test
Using "prefix" as a way to isolate indexes between enviroments, an of course defaulting "prefix" to the environment name.
At the moment the default index name and the custom index name are the same in all environments. This causes updates triggered in eg. test mode to update data/indexes in the other environment as well.
A suggestion could be to add a suffix to the index name, like this:
Causing a User-model to use an index name of "users_production" in production environment and "users_test" in test environment.
Let me know what you think and I can provide a patch.
The text was updated successfully, but these errors were encountered: