Skip to content

Commit

Permalink
setParams from dataObject->getParams in dodPopulateIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasender committed Aug 6, 2024
1 parent f79139c commit 9af03c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Command/DoPopulateIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,17 @@ private function doPopulateIndex(
}
$progressBar->advance();

$esDocuments[] = $this->documentHelper->elementToDocument($documentInstance, $dataObject);
$esDocument = $this->documentHelper->elementToDocument($documentInstance, $dataObject);

$params = $dataObject->getParams() ?? [];

if ($params !== []) {
foreach ($params as $key => $value) {
$esDocument->setParam($key, $value);
}
}

$esDocuments[] = $esDocument;
} catch (\Throwable $throwable) {
$this->displayDocumentError($indexConfig, $document, $dataObject, $throwable);

Expand Down

0 comments on commit 9af03c9

Please sign in to comment.