We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a20cf commit 36fa0f1Copy full SHA for 36fa0f1
1 file changed
src/search/flexsearch-core.ts
@@ -58,9 +58,9 @@ function englishStemmer(word: string): string {
58
*/
59
export function createSearchIndex(): FlexSearchDocument {
60
return new FlexSearch.Document<IndexableDocument, string[]>({
61
- // Use 'full' tokenization for substring matching
62
- // This allows "auth" to match "authentication"
63
- tokenize: 'full',
+ // Use 'forward' tokenization to avoid OOM with large doc sets
+ // See: https://github.com/scalvert/docusaurus-plugin-mcp-server/issues/11
+ tokenize: "forward"
64
65
// Enable caching for faster repeated queries
66
cache: 100,
0 commit comments