Skip to content

Commit ac34f9b

Browse files
authored
MAGE-1093: removed mode during setSettings if index has NeuralSearch enabled (#1633)
1 parent 43d86de commit ac34f9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Helper/AlgoliaHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ public function mergeSettings($indexName, $settings, $mergeSettingsFrom = '')
361361

362362
$removes = ['slaves', 'replicas', 'decompoundedAttributes'];
363363

364+
if (isset($onlineSettings['mode']) && $onlineSettings['mode'] == 'neuralSearch') {
365+
$removes[] = 'mode';
366+
}
367+
364368
if (isset($settings['attributesToIndex'])) {
365369
$settings['searchableAttributes'] = $settings['attributesToIndex'];
366370
unset($settings['attributesToIndex']);

0 commit comments

Comments
 (0)