Skip to content

Commit 3ec184c

Browse files
authored
Fix: Increase the number of results of the doc search bar (#2719)
1 parent 0ed4bba commit 3ec184c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_includes/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
apiKey: 'fbc439670f5d4e3730cdcb715c359391',
107107
indexName: 'scala-lang',
108108
inputSelector: '#doc-search-bar',
109-
algoliaOptions: {'facetFilters': ["language:en"]},
109+
algoliaOptions: {'facetFilters': ["language:en"],'hitsPerPage': 6,'distinct': 1},
110110
debug: false// Set debug to true if you want to inspect the dropdown
111111
});
112112
}

resources/js/functions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ $(document).ready(function() {
338338
resultsContainer: document.getElementById('result-container'),
339339
json: '/resources/json/search.json',
340340
searchResultTemplate: '<li><a href="{url}">{title}</a></li>',
341-
limit: 7,
341+
limit: 5,
342342
});
343343

344344
$("#blog-search-bar").on("change paste keyup",function(){

0 commit comments

Comments
 (0)
close