Skip to content

Commit

Permalink
Search on UiTPAS label with wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
LucWollants committed Jun 28, 2024
1 parent 22c1d49 commit 138259f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Search/Sapi3/Sapi3SearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 138259f

Please sign in to comment.