Skip to content

Commit 162f9b1

Browse files
committed
docs: Improve results for small search queries
1 parent b0c4d7d commit 162f9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_static/searchtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const Search = {
282282

283283
const queryLower = query.toLowerCase();
284284
for (const [title, foundTitles] of Object.entries(allTitles)) {
285-
if (title.toLowerCase().includes(queryLower) && (queryLower.length >= title.length/2)) {
285+
if (title.toLowerCase().includes(queryLower)) {
286286
for (const [file, id] of foundTitles) {
287287
let score = Math.round(100 * queryLower.length / title.length)
288288
results.push([

0 commit comments

Comments
 (0)