From f38e05fbf8bc2f1163733cbe57797a3658257137 Mon Sep 17 00:00:00 2001 From: nikhiltri Date: Wed, 22 Feb 2023 12:47:31 -0600 Subject: [PATCH] Add `track_total_hits` to all Elasticsearch queries [API-365] --- app/Http/Search/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Search/Request.php b/app/Http/Search/Request.php index 5155029a..19eafb1b 100644 --- a/app/Http/Search/Request.php +++ b/app/Http/Search/Request.php @@ -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' => [],