Skip to content

Commit 8849d97

Browse files
committed
chore: limit search result count
1 parent adafd4b commit 8849d97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets/js/wowchemy-search.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ function initSearch(force, fuse) {
8181
// Perform search.
8282
function searchAcademic(query, fuse) {
8383
let results = fuse.search(query);
84-
// console.log({"results": results});
84+
// Limit results to 100
85+
results = results.slice(0, 100); // Add this line to limit results to 100
8586

8687
if (results.length > 0) {
8788
$('#search-hits').append('<h3 class="mt-0">' + results.length + ' ' + i18n.results + '</h3>');

0 commit comments

Comments
 (0)