FOSElasticaBundle icon indicating copy to clipboard operation
FOSElasticaBundle copied to clipboard

How to define multiple template patterns for an index template?

Open benjamintoussaint opened this issue 5 years ago • 1 comments

Hi,

I've following this doc to create an index template: https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/doc/templates.md#index-templates

It gives template: some_index_* as an example pattern and refers to the official documentation: https://www.elastic.co/guide/en/elasticsearch/reference/6.6/indices-templates.html#indices-templates

But in the official documentation, I see that we can define an array of patterns: "index_patterns": ["te*", "bar*"],

Is it possible to apply a template using multiple patterns and then how? If not, how could I manually apply a given template to multiple indexes?

Thank you!

benjamintoussaint avatar Apr 16 '20 09:04 benjamintoussaint

Any update ? I agree with @benjamintoussaint this doesn't work.

JamesHemery avatar Apr 07 '22 14:04 JamesHemery