Skip to content

Commit

Permalink
Change default to false instead of true
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Jan 27, 2021
1 parent a86696a commit 8906550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/server/search/es_search/response_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function toKibanaSearchResponse(rawResponse: SearchResponse<unknown>) {
*/
export function shimHitsTotal(
response: SearchResponse<unknown>,
{ legacyHitsTotal = true }: ISearchOptions = {}
{ legacyHitsTotal = false }: ISearchOptions = {}
) {
if (!legacyHitsTotal) return response;
const total = (response.hits?.total as any)?.value ?? response.hits?.total;
Expand Down

0 comments on commit 8906550

Please sign in to comment.