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
Initial implementation of index template support #917
Initial implementation of index template support #917
Conversation
7f5361e
to
c8bdc50
Compare
c8bdc50
to
17d5eb5
Compare
… Added possibility to remove all template indexes
# Conflicts: # Tests/DependencyInjection/ConfigurationTest.php # Tests/Index/MappingBuilderTest.php # Tests/Index/ResetterTest.php # composer.json
ping |
@olegandreyev I need to review PR, because it may still need some fixes
E-Mail: dmitry.balabka@gmail.com |
@torinaki, I need this changes for one of my projects, let's work together on finish this up. |
Ok. I will review changes on weekend. If I remember correctly there is only
E-Mail: dmitry.balabka@gmail.com |
"We can check that IndexTemplate class exists otherwise throw Exception that Ruflin library must be updated." @torinaki The right way to do this would be changing the dependencies in composer.json. |
afaik IndexTemplates exists in ruflin:~3, so we'll have change dependency On Jul 16, 2016 7:39 PM, "Adirelle" notifications@github.com wrote:
|
@Adirelle current requirement is |
How about enabling support of IndexTemplates only with it exists in On Jul 17, 2016 22:54, "Dmitry Balabka" notifications@github.com wrote:
|
@oleg-andreyev do you really think that I'm planning to throw exception when |
No, I was thinking about unset index_template, in Extension, if class On Jul 17, 2016 23:03, "Dmitry Balabka" notifications@github.com wrote:
|
Closing as this PR was never finished. |
@oleg-andreyev looks need to actualize. Do we still use our fork? |
Hey Guys! Cheers |
@buehler we are using this on production. Because of lack of time we still using old version of bundle, but planning to upgrade soon, so we will move this PR forward ASAP. Answering on your question, yes you can configure templates in YAML configuration files: index_templates:
<name>:
client: default
template_name: <template name>
template: some_index_*
settings:
number_of_shards: 1
number_of_replicas: 0
types:
auto_suggest:
mappings:
<field name>: <params>
... To apply templates changes we have created additional options for
You must run following command to sync templates configuration on ES server with YAML configurations: php bin/console fos:elastica:reset --index-template You can build-in this command into deployment process to automate template configuration sync. |
TODO:
Original tiket: #916