Skip to content

Commit e11d039

Browse files
committed
MAGE-1153: use existing logic in mergeSettings to remove synonyms duplication
1 parent e162a63 commit e11d039

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
@@ -359,7 +359,7 @@ public function mergeSettings($indexName, $settings, $mergeSettingsFrom = '')
359359
} catch (\Exception $e) {
360360
}
361361

362-
$removes = ['slaves', 'replicas', 'decompoundedAttributes'];
362+
$removes = ['slaves', 'replicas', 'decompoundedAttributes', 'synonyms'];
363363

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

0 commit comments

Comments
 (0)