Skip to content

Commit 7ad558d

Browse files
committed
fix: improve search functionality for period-prefixed terms like .rooignore
- Remove default stemmer to allow exact matches - Remove stop word filter to allow searching for common words - Increase search result limits from 8 to 20 - Increase search result context length from 50 to 100 characters This should fix the issue where searching for terms like ".rooignore" or ".gitignore" returns no results. Fixes RooCodeInc/Roo-Code#6508
1 parent 21ee53c commit 7ad558d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docusaurus.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ const config: Config = {
7676
highlightSearchTermsOnTargetPage: true,
7777
explicitSearchResultPath: true,
7878
docsRouteBasePath: "/",
79+
// Remove default stemmer to allow exact matches
80+
removeDefaultStemmer: true,
81+
// Remove stop word filter to allow searching for common words
82+
removeDefaultStopWordFilter: true,
83+
// Increase search result limits to show more results
84+
searchResultLimits: 20,
85+
// Increase context length to show more content
86+
searchResultContextMaxLength: 100,
7987
},
8088
],
8189
],

0 commit comments

Comments
 (0)