diff --git a/lib/RoadizCoreBundle/src/SearchEngine/Subscriber/AbstractIndexingSubscriber.php b/lib/RoadizCoreBundle/src/SearchEngine/Subscriber/AbstractIndexingSubscriber.php index a8db300d..3bb5c452 100644 --- a/lib/RoadizCoreBundle/src/SearchEngine/Subscriber/AbstractIndexingSubscriber.php +++ b/lib/RoadizCoreBundle/src/SearchEngine/Subscriber/AbstractIndexingSubscriber.php @@ -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