Skip to content

Commit

Permalink
Add track_total_hits to all Elasticsearch queries [API-365]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Feb 22, 2023
1 parent 3dbab2d commit f38e05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Search/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function getSearchParams($input = null, $withAggregations = true)
// This is the canonical body structure. It is required.
// Various
$params['body'] = [

'track_total_hits' => true,
'query' => [
'bool' => [
'must' => [],
Expand Down

0 comments on commit f38e05f

Please sign in to comment.