philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
84 stars 29 forks source link

Autocomplete fallback #215

Closed mdashlw closed 3 months ago

mdashlw commented 3 months ago

Before you begin


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