mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(website): add type field to search index to sort by (#10212)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user