FOSElasticaBundle
FOSElasticaBundle copied to clipboard
Indexes suffixes
I would like to know if there is a way like Doctrine to have an index_suffix to use it with Paratest ? And to have different index in dev and test mode if we not use Paratest.
when@test:
doctrine:
dbal:
# "TEST_TOKEN" is typically set by ParaTest
dbname_suffix: '_test%env(default::TEST_TOKEN)%'
https://www.doctrine-project.org/projects/doctrine-bundle/en/2.4/configuration.html
Maybe a can be to override the index_name in test env like:
when@test:
fos_elastica:
indexes:
app_user:
index_name: 'app_user_test%env(default::TEST_TOKEN)%'
But this mean to duplicate all indexes.