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:
@@ -66,7 +66,10 @@ try {
|
||||
await client.waitForTask(task.taskUid);
|
||||
}
|
||||
|
||||
await client.index(index.index).addDocuments(index.data);
|
||||
const searchIndex = client.index(index.index);
|
||||
await searchIndex.updateSettings({ sortableAttributes: ['type'] });
|
||||
|
||||
await searchIndex.addDocuments(index.data);
|
||||
}),
|
||||
);
|
||||
} catch {}
|
||||
|
||||
Reference in New Issue
Block a user