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

Autocomplete fallback #215

Merged
merged 3 commits into from
Mar 24, 2024
Merged

Conversation

mdashlw
Copy link
Contributor

@mdashlw mdashlw commented Mar 24, 2024

Before you begin

  • I understand my contributions may be rejected for any reason
  • I understand my contributions are for the benefit of Derpibooru and/or the Philomena software
  • I understand my contributions are licensed under the GNU AGPLv3
  • I understand all of the above

Local autocompleter currently takes top 50k tags (the cutoff is ~34 images right now). It'd be useful to have autocomplete for tags without that many images, e.g. for artists and OCs. This PR adds it by making autocomplete fallback to fetch if instant returns no results. This approach avoids adding additional 233k tags (images.gt:0, images.lt:34, (artist:* || oc:*)) to the precompiled binary. This PR also makes the fetch autocomplete return all tags with 1+ images instead of 4+.

Also see https://discord.com/channels/430829008402251796/438029140659142657/1175460824924565584

@liamwhite liamwhite merged commit 921ad0c into philomena-dev:master Mar 24, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants