The getResultCount() method gets the number of results for the current job. If the job is preview-enabled, meaning that partial results are available before the job is done, this method returns the number of partial results.
count = getResultCount()
|
Integer |
Number of results within the current job. |
var context = this.getContext();
var search = context.get('search');
console.log('Result count = ' + search.job.getResultCount().toString());