Skip to content

Commit

Permalink
changed analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierusinskas committed Apr 13, 2023
1 parent b301a92 commit 0c2883f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/OpenSearchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public function search(string $index, string $query, array $options = [])
[
'query_string' => [
'query' => !empty($query) ? "*$query*" : '*',
'analyzer' => 'whitespace',
'analyzer' => 'keyword',
],
],
[
'multi_match' => [
'query' => $query,
'analyzer' => 'whitespace',
'analyzer' => 'keyword',
],
],
],
Expand Down

0 comments on commit 0c2883f

Please sign in to comment.