Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore(docs): slightly better search results
  • Loading branch information
mlaursen committed Feb 6, 2021
1 parent af72791 commit 0e3d3f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/documentation/src/pages/api/search.ts
Expand Up @@ -7,15 +7,15 @@ const indexer = new Fuse(metadata, {
keys: [
{
name: "title",
weight: 0.6,
weight: 0.9,
},
{
name: "summary",
weight: 0.15,
weight: 0.0005,
},
{
name: "type",
weight: 0.25,
weight: 0.0095,
},
],
});
Expand All @@ -26,7 +26,7 @@ export default async (
): Promise<void> => {
const search = qsToString(req.query.q);
const from = qsToInt(req.query.from, 0);
const size = qsToInt(req.query.size, 5);
const size = qsToInt(req.query.size, 8);
if (!search) {
res.status(403).end();
return;
Expand Down

0 comments on commit 0e3d3f7

Please sign in to comment.