Skip to content

Commit

Permalink
chore(Solr): Filter duplicated entries before flattening texts collec…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
ambroisemaupate committed Sep 26, 2023
1 parent fea4ea0 commit 4756b07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class AbstractIndexingSubscriber implements EventSubscriberInterface
{
protected function flattenTextCollection(array $collection): string
{
return trim(implode(PHP_EOL, array_filter($collection)));
return trim(implode(PHP_EOL, array_filter(array_unique($collection))));
}

protected function formatDateTimeToUTC(\DateTimeInterface $dateTime): string
Expand Down

0 comments on commit 4756b07

Please sign in to comment.