From 0f484b98bdf47033e72475a26be1211e521b18e1 Mon Sep 17 00:00:00 2001 From: Richard BAYET Date: Tue, 27 Aug 2019 09:55:28 +0200 Subject: [PATCH] Fixes #1514 Accents support in multi-words synonyms/expansions --- .../Model/Indexer/IndexHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module-elasticsuite-thesaurus/Model/Indexer/IndexHandler.php b/src/module-elasticsuite-thesaurus/Model/Indexer/IndexHandler.php index cfde5e423..4e62943a8 100644 --- a/src/module-elasticsuite-thesaurus/Model/Indexer/IndexHandler.php +++ b/src/module-elasticsuite-thesaurus/Model/Indexer/IndexHandler.php @@ -161,7 +161,7 @@ private function addAnalyzerSettings($settings, $type, $values) private function prepareSynonymFilterData($rows) { $rowMaper = function ($row) { - return preg_replace('/([\w])[\s-](?=[\w])/', '\1_', $row); + return preg_replace('/([\w])[\s-](?=[\w])/u', '\1_', $row); }; return array_map($rowMaper, $rows);