We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 677aaec commit ac00232Copy full SHA for ac00232
1 file changed
docs/src/app/(content)/api/search/route.ts
@@ -23,4 +23,7 @@ export const { GET } = createSearchAPI('advanced', {
23
...docsSource.getPages().map(buildIndex),
24
...apiSource.getPages().map(buildIndex),
25
],
26
+ // Require every query token to match, with Levenshtein-1 typo tolerance.
27
+ // Without threshold: 0, "camera devices" ranks pages that only mention "camera".
28
+ search: { threshold: 0, tolerance: 1 },
29
})
0 commit comments