There was an error while loading. Please reload this page.
1 parent af72791 commit 0e3d3f7Copy full SHA for 0e3d3f7
1 file changed
packages/documentation/src/pages/api/search.ts
@@ -7,15 +7,15 @@ const indexer = new Fuse(metadata, {
7
keys: [
8
{
9
name: "title",
10
- weight: 0.6,
+ weight: 0.9,
11
},
12
13
name: "summary",
14
- weight: 0.15,
+ weight: 0.0005,
15
16
17
name: "type",
18
- weight: 0.25,
+ weight: 0.0095,
19
20
],
21
});
@@ -26,7 +26,7 @@ export default async (
26
): Promise<void> => {
27
const search = qsToString(req.query.q);
28
const from = qsToInt(req.query.from, 0);
29
- const size = qsToInt(req.query.size, 5);
+ const size = qsToInt(req.query.size, 8);
30
if (!search) {
31
res.status(403).end();
32
return;
0 commit comments