diff --git a/platform/search/src/services/GenericSearchWorker.js b/platform/search/src/services/GenericSearchWorker.js index 469dfbf895..1681f9d749 100644 --- a/platform/search/src/services/GenericSearchWorker.js +++ b/platform/search/src/services/GenericSearchWorker.js @@ -139,9 +139,9 @@ } }); - // Truncate results if there are more than maxResults - if (message.total > data.maxResults) { - message.results = results.slice(0, data.maxResults); + // Truncate results if there are more than maxNumber + if (message.total > data.maxNumber) { + message.results = results.slice(0, data.maxNumber); } else { message.results = results; }