Skip to content

Commit 0a3266a

Browse files
authored
Fixes a small issue while deletion of index's QR (the PHP client V2 expects an array for the RequestOptions parameter) (#984)
1 parent 69eb439 commit 0a3266a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function setSettings($indexName, $indexNameTmp, $storeId, $saveToTmpIndic
424424
} elseif ($saveToTmpIndicesToo === true) {
425425
$this->algoliaHelper->copySynonyms($indexName, $indexNameTmp);
426426
$this->logger->log('
427-
Synonyms management disabled.
427+
Synonyms management disabled.
428428
Copying synonyms from production index to TMP one to not to erase them with the index move.
429429
');
430430
}
@@ -1092,7 +1092,9 @@ private function clearFacetsQueryRules(SearchIndex $index)
10921092
}
10931093

10941094
foreach ($fetchedQueryRules['hits'] as $hit) {
1095-
$index->deleteRule($hit['objectID'], true);
1095+
$index->deleteRule($hit['objectID'], [
1096+
'forwardToReplicas' => true,
1097+
]);
10961098
}
10971099

10981100
$page++;

0 commit comments

Comments
 (0)