Skip to content

Commit

Permalink
fix(solr): re-index failed document
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed May 15, 2024
1 parent ef47c5b commit 3564c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Indexer/SolrIndexService.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function upsertItem(SearchItem $searchItem): object
$cmsSearchItem->setValues($searchItem, $cmsSearchItemStatus);
$cmsSearchItem->url = $this->solrIndex->siteUrl($searchItem->url(), $this->domain);

if ($cmsSearchItemStatus == 'FAILED') {
if ( in_array( $cmsSearchItemStatus , ['NOT_FOUND', 'FAILED'])) {
$cmsSearchItem->updated_at = null;
}
$cmsSearchItem->save();
Expand Down

0 comments on commit 3564c15

Please sign in to comment.