Display the number of candidates instead of the returned document count

This commit is contained in:
Kerollmops 2020-12-29 00:50:06 +01:00
parent 510df4729c
commit aa129dd7e8
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,7 @@ $('#query, #facet').on('input', function () {
let timeSpent = request.getResponseHeader('Time-Ms');
let numberOfDocuments = data.documents.length;
count.innerHTML = `${numberOfDocuments}`;
count.innerHTML = data.numberOfCandidates.toLocaleString();
time.innerHTML = `${timeSpent}ms`;
time.classList.remove('fade-in-out');