Skip to content

Commit 0e3d3f7

Browse files
committed
chore(docs): slightly better search results
1 parent af72791 commit 0e3d3f7

File tree

1 file changed

+4
-4
lines changed
  • packages/documentation/src/pages/api

1 file changed

+4
-4
lines changed

Diff for: packages/documentation/src/pages/api/search.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ const indexer = new Fuse(metadata, {
77
keys: [
88
{
99
name: "title",
10-
weight: 0.6,
10+
weight: 0.9,
1111
},
1212
{
1313
name: "summary",
14-
weight: 0.15,
14+
weight: 0.0005,
1515
},
1616
{
1717
name: "type",
18-
weight: 0.25,
18+
weight: 0.0095,
1919
},
2020
],
2121
});
@@ -26,7 +26,7 @@ export default async (
2626
): Promise<void> => {
2727
const search = qsToString(req.query.q);
2828
const from = qsToInt(req.query.from, 0);
29-
const size = qsToInt(req.query.size, 5);
29+
const size = qsToInt(req.query.size, 8);
3030
if (!search) {
3131
res.status(403).end();
3232
return;

0 commit comments

Comments
 (0)