diff --git a/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php b/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php index 5717dc0ceb..998468d76b 100644 --- a/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php +++ b/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php @@ -230,6 +230,10 @@ public function populate($options = []) $this->config['index']['configuration']['analysis']['char_filter']['diacritics_lowercase'] = $this->loadDiacriticsMappings(); } + // Make sure it's initialized, QubitSearch::disable() gets an instance + // without initialization and it's used in the install/purgue tasks. + $this->initialize(); + $this->loadAndNormalizeMappings(); // Display what types will be indexed