Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

Qjuh
Copy link
Contributor

@Qjuh Qjuh commented Apr 14, 2024

Please describe the changes this PR makes and why it should be merged:

Adds a type property to the meilisearch documents, which then is used in CmdK search to sort the results in the following order:

  • Class,
  • Interface,
  • TypeAlias,
  • Function,
  • Enum,
  • Variable,
  • Event,
  • Method,
  • Property,
  • MethodSignature,
  • PropertySignature,
  • EnumMember,

The following ApiItemKind are added at the end of the enum used for sorting, although they should never appear in the index:
Package, Namespace, IndexSignature, CallSignature, Constructor, ConstructSignature, EntryPoint, Model, None

Status and versioning classification:

  • This PR only includes non-code changes, like changes to documentation, README, etc.

@Qjuh Qjuh requested review from a team as code owners April 14, 2024 11:59
Copy link

vercel bot commented Apr 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2024 0:01am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Apr 14, 2024 0:01am

@iCrawl iCrawl merged commit 7baa9e4 into discordjs:main Apr 14, 2024
6 checks passed
@Qjuh Qjuh deleted the website/search-sort branch April 15, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants