feat(website): add type field to search index to sort by (#10212)

This commit is contained in:
Qjuh
2024-04-14 19:53:16 +02:00
committed by GitHub
parent afb97fbd00
commit 7baa9e4333
3 changed files with 31 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ export function CmdK({ dependencies }: { readonly dependencies: string[] }) {
q: searchString,
limit: 25,
attributesToSearchOn: ['name'],
sort: ['type:asc'],
})),
});
setSearchResults(result.results.flatMap((res) => res.hits));