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

Consider deduping/sorting meili results #236

Open
almostSouji opened this issue Jan 9, 2025 · 0 comments
Open

Consider deduping/sorting meili results #236

almostSouji opened this issue Jan 9, 2025 · 0 comments

Comments

@almostSouji
Copy link
Member

Meili multi search returns queries for each scope, which are currently concatenated with a simple flatmap - if a prior scope has enough (potentially bad) matches, they will currently be prioritized over better fitting candidates in later scopes. additionally discord.js re-exports structures (for example builders), resulting in duplicates

  • consider deduping results (prioritize source over re-exported scopes (aka: no discord.js))
  • consider filling the AC results in a round-robin approach rather than flatmapping the hits

Derived from #235 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant