Skip to content

Commit

Permalink
Merge pull request #1229 from cultuurnet/PPF-460-add-wildcard-to-uitp…
Browse files Browse the repository at this point in the history
…as-search

PPF-460 Search on UiTPAS label with wildcard
  • Loading branch information
LucWollants authored Jun 28, 2024
2 parents 22c1d49 + 138259f commit 8f6d784
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 8f6d784

Please sign in to comment.