Skip to content

Commit

Permalink
Filter min result score on instant search
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed May 23, 2024
1 parent 5ae3320 commit ba05652
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Controller/InstantSearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ public function __invoke(Request $request, string $query): Response
);

$esResult = $this->client->query(
$this->queryBuilder->buildSearchQuery($query, null, $this->maxResults),
$this->queryBuilder->buildSearchQuery(
$query,
null,
$this->maxResults,
null,
false,
null,
1,
),
$indexAliasNames,
);
$queryResult = $this->queryResultMapper->map($esResult);
Expand Down

0 comments on commit ba05652

Please sign in to comment.