We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a4841d commit bf7a6c3Copy full SHA for bf7a6c3
sites/kit.svelte.dev/src/lib/search/search.js
@@ -17,10 +17,7 @@ export function init(blocks) {
17
// we have multiple indexes, so we can rank sections (migration guide comes last)
18
const max_rank = Math.max(...blocks.map((block) => block.rank ?? 0));
19
20
- indexes = Array.from(
21
- { length: max_rank + 1 },
22
- () => new flexsearch.Index({ tokenize: 'forward' })
23
- );
+ indexes = Array.from({ length: max_rank + 1 }, () => new flexsearch({ tokenize: 'forward' }));
24
25
for (const block of blocks) {
26
const title = block.breadcrumbs[block.breadcrumbs.length - 1];
0 commit comments