From 14cd40ed140ed903bc24355c1a798771f34bc905 Mon Sep 17 00:00:00 2001 From: almostSouji Date: Sat, 27 Jul 2024 12:07:31 +0200 Subject: [PATCH] chore(docs): closer mimic docs page with meili query --- src/functions/docs.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions/docs.ts b/src/functions/docs.ts index 19dd659..0a9cfdb 100644 --- a/src/functions/docs.ts +++ b/src/functions/docs.ts @@ -57,9 +57,11 @@ export async function queryDocs(query: string, pack: string, version: string) { const searchRes = await fetch(searchURL(pack, version), { method: 'post', body: JSON.stringify({ - limit: 100, + limit: 25, // eslint-disable-next-line id-length q: query, + attributesToSearchOn: ['name'], + sort: ['type:asc'], }), headers: { Authorization: `Bearer ${process.env.DJS_DOCS_BEARER!}`,