adds to the config the index parameter, needed for disabling the analyzer or the indexing

This commit is contained in:
Francisco Facioni 2012-10-15 17:18:04 -03:00
parent 7bee84e2fa
commit f4c0a4abda

View file

@ -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'];
}
}
}