Skip to content

Commit

Permalink
AND combine multiple search terms
Browse files Browse the repository at this point in the history
  • Loading branch information
erickloss committed Feb 22, 2024
1 parent 45b6aef commit ff46a68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static function prepareSearchTermQueryParameter(string $userInput): strin
});

$searchWordsFuzzy = array_map(function(string $searchWord) {
return $searchWord . '*';
return '+' . $searchWord . '*';
}, $searchWords);

return implode(' ', $searchWordsFuzzy);
Expand Down

0 comments on commit ff46a68

Please sign in to comment.