diff --git a/app/Search/Sapi3/Sapi3SearchService.php b/app/Search/Sapi3/Sapi3SearchService.php index 0eed9268b..a9c0abfee 100644 --- a/app/Search/Sapi3/Sapi3SearchService.php +++ b/app/Search/Sapi3/Sapi3SearchService.php @@ -4,7 +4,7 @@ namespace App\Search\Sapi3; -use CultuurNet\SearchV3\Parameter\Label; +use CultuurNet\SearchV3\Parameter\Query; use CultuurNet\SearchV3\SearchClientInterface; use CultuurNet\SearchV3\SearchQuery; use CultuurNet\SearchV3\ValueObjects\PagedCollection; @@ -18,7 +18,7 @@ public function __construct(private SearchClientInterface $searchClient) public function searchUiTPASOrganizer(string $name): PagedCollection { $searchQuery = new SearchQuery(); - $searchQuery->addParameter(new Label('UiTPAS')); + $searchQuery->addParameter(new Query('labels:UiTPAS*')); $searchQuery->addParameter(new Name($name)); $searchQuery->setLimit(5); $searchQuery->setEmbed(true);