mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Merge pull request #4196 from lukasolson/issues/4168
Use search_type='count' for segmented fetch when size is 0
This commit is contained in:
commit
d788876e34
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ define(function (require) {
|
|||
params.body.size = Math.max(self._desiredSize - self._hitsReceived, 0);
|
||||
}
|
||||
|
||||
if (params.body.size === 0) params.search_type = 'count';
|
||||
|
||||
return params;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue