From f4c0a4abdae9587721ba9858192bfc57a654a5ef Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Mon, 15 Oct 2012 17:18:04 -0300 Subject: [PATCH] adds to the config the index parameter, needed for disabling the analyzer or the indexing --- DependencyInjection/FOQElasticaExtension.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DependencyInjection/FOQElasticaExtension.php b/DependencyInjection/FOQElasticaExtension.php index b26c30a..92310cc 100644 --- a/DependencyInjection/FOQElasticaExtension.php +++ b/DependencyInjection/FOQElasticaExtension.php @@ -187,6 +187,9 @@ class FOQElasticaExtension extends Extension if (isset($type['search_analyzer'])) { $this->indexConfigs[$indexName]['config']['mappings'][$name]['search_analyzer'] = $type['search_analyzer']; } + if (isset($type['index'])) { + $this->indexConfigs[$indexName]['config']['mappings'][$name]['index'] = $type['index']; + } } }