mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Fix data visualizer to obtain total hit count as int (#27490)
This commit is contained in:
parent
2bbc821024
commit
bfa80411bb
1 changed files with 6 additions and 1 deletions
|
@ -262,7 +262,12 @@ export class DataVisualizer {
|
|||
aggs: buildSamplerAggregation(aggs, samplerShardSize)
|
||||
};
|
||||
|
||||
const resp = await this.callWithRequest('search', { index, size, body });
|
||||
const resp = await this.callWithRequest('search', {
|
||||
index,
|
||||
rest_total_hits_as_int: true,
|
||||
size,
|
||||
body
|
||||
});
|
||||
const aggregations = resp.aggregations;
|
||||
const totalCount = _.get(resp, ['hits', 'total'], 0);
|
||||
const stats = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue