The getScanCount() method gets the number of events scanned by the current job in compiling the event or result set.
count = getScanCount()
|
Integer |
Number of scanned events. |
var context = this.getContext();
var search = context.get('search');
console.log('Scan count = ' + search.job.getScanCount().toString());