Skip to content

Commit 7d9926e

Browse files
authored
Merge pull request #1656 from algolia/fix/MAGE-1153-duplicate-synonyms
MAGE-1153: fix synonyms duplication after PHP v4 upgrade
2 parents 3a3e823 + c72788c commit 7d9926e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/AlgoliaHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public function mergeSettings($indexName, $settings, string $mergeSettingsFrom =
371371
} catch (Exception $e) {
372372
}
373373

374-
$removes = ['slaves', 'replicas', 'decompoundedAttributes'];
374+
$removes = ['slaves', 'replicas', 'decompoundedAttributes', 'synonyms'];
375375

376376
if (isset($onlineSettings['mode']) && $onlineSettings['mode'] == 'neuralSearch') {
377377
$removes[] = 'mode';

0 commit comments

Comments
 (0)