Skip to content

Commit 905135c

Browse files
gjwncdaniellienert
authored andcommitted
BUGFIX: Move scroll parameter to POST body in Version5/DocumentDriver
1 parent 8f7d272 commit 905135c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Classes/Driver/Version5/DocumentDriver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ public function deleteDuplicateDocumentNotMatchingType(Index $index, string $doc
8888
while (isset($treatedContent['hits']['hits']) && $treatedContent['hits']['hits'] !== []) {
8989
$hits = $treatedContent['hits']['hits'];
9090
$bulkRequest = array_merge($bulkRequest, array_map($mapHitToDeleteRequest, $hits));
91-
$result = $index->request('GET', '/_search/scroll?scroll=1m', [], $scrollId, false);
91+
$result = $index->request('POST', '/_search/scroll', [], json_encode([
92+
'scroll' => '1m',
93+
'scroll_id' => $scrollId,
94+
]), false);
9295
$treatedContent = $result->getTreatedContent();
9396
}
9497
$this->logger->debug(sprintf('NodeIndexer: Check duplicate nodes for %s (%s), found %d document(s)', $documentIdentifier, $nodeType->getName(), count($bulkRequest)), LogEnvironment::fromMethodName(__METHOD__));

0 commit comments

Comments
 (0)