Only set ignored_throttled when required (#118185) (#118295)

Co-authored-by: Tim Roes <tim.roes@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-11 04:59:16 -05:00 committed by GitHub
parent c0e289ccb4
commit 7e695cda58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ export function registerSearchRoute({
index: request.body.index,
body: request.body.body,
track_total_hits: true,
ignore_throttled: !includeFrozen,
...(includeFrozen ? { ignore_throttled: false } : {}),
})
).body,
},