TASK: Also explode char_filter

char_filter is also an array, therefore we should explode it.
This commit is contained in:
Daniel Siepmann 2017-12-19 16:39:42 +01:00
parent 51503b0e71
commit a4179b4053
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -94,7 +94,7 @@ class IndexFactory implements Singleton
try { try {
$configuration = $this->configuration->get('indexing.' . $documentType . '.index'); $configuration = $this->configuration->get('indexing.' . $documentType . '.index');
foreach (['analyzer', 'filter'] as $optionsToExpand) { foreach (['analyzer', 'filter', 'char_filter'] as $optionsToExpand) {
if (isset($configuration['analysis'][$optionsToExpand])) { if (isset($configuration['analysis'][$optionsToExpand])) {
foreach ($configuration['analysis'][$optionsToExpand] as $key => $options) { foreach ($configuration['analysis'][$optionsToExpand] as $key => $options) {
$configuration['analysis'][$optionsToExpand][$key] = $this->prepareOptions($options); $configuration['analysis'][$optionsToExpand][$key] = $this->prepareOptions($options);