Skip to content

Commit

Permalink
Simplify terms assignment in ResearchArticleIndexer class
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Jan 27, 2025
1 parent 6358565 commit 35d9b00
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Search/Indexer/ModelIndexer/ResearchArticleIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ public function prepareChangeSet(Model $article) : ChangeSet
$changeSet->addDelete('reviewed-preprint-'.$article->getId());
}

$terms = $this->termsIndexValues($article);
if ($terms) {
$articleObject->terms = $terms;
}
$articleObject->terms = $this->termsIndexValues($article);

$articleObject->snippet = ['format' => 'json', 'value' => json_encode($snippet)];

Expand Down

0 comments on commit 35d9b00

Please sign in to comment.