Skip to content

Commit

Permalink
IBX-7512: Removed searching by partial words (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
webhdx authored Jan 18, 2024
1 parent 2439c63 commit aaa3ed1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function onBuildSuggestionCollectionEvent(
private function getQuery(string $value, int $limit): Query
{
$query = new Query();
$query->query = new Query\Criterion\FullText($value . '*');
$query->query = new Query\Criterion\FullText($value);
$query->limit = $limit;
$defaultSortClauses = $this->sortingDefinitionRegistry->getDefaultSortingDefinition();
if ($defaultSortClauses !== null) {
Expand Down

0 comments on commit aaa3ed1

Please sign in to comment.