Skip to content

Commit

Permalink
Use wildcard rather than the defunct "_all" field
Browse files Browse the repository at this point in the history
Use wildcard rather than the defunct "_all" field
  • Loading branch information
JimMackin authored and mattlorimer committed Nov 18, 2021
1 parent f575c2a commit cdf96bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Search/ElasticSearch/ElasticSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function createSearchParams(SearchQuery $query): array
'query' => [
'query_string' => [
'query' => $searchStr,
'fields' => ['name.*^5', '_all'],
'fields' => ['name.*^5', '*'],
'analyzer' => 'standard',
'default_operator' => 'OR',
'minimum_should_match' => '66%',
Expand Down

0 comments on commit cdf96bb

Please sign in to comment.