-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
AUR package search still inferior to the original #923
Comments
As mentioned in the guide, at the moment only full terms can be matched on. |
Wondering if nexus and mods may be keywords? Is it possible to read the keywords for packages via the API? Because as regular users you don't see them. Only as maintainer you got a field to fill them out. |
I guess not. They really do substring matching. Weird.
|
It's probably just calling the AUR directly, which does substring matching internally. |
Yeah, I was just wondering. That's not a very performant operation, weird that they do this on the AUR database :) |
Some databases do support such full-text search, but running a database was something I wanted to avoid. |
+1 for this being very impractical - if user doesn't know exact name of the package, it's easy to miss some characters, e.g. in shortcuts or singular vs. plural. |
How about not running a database and instead have aura download the database and run the search locally? Would be much faster, available offline, no additional server cost and you could provide simple update files, say compressed sql files with the delta, so aura could catch up and don't have to re-download the whole database on each update. If you don't want to add something like sqlite, there's probably plenty of in memory databases available for rust. So you would simply provide a list with the AUR metadata and load it in the in-memory database on a query, before searching it. zstd can create the tiny delta updates for the file with its So you would just offer some tiny static files to download, probably packing them from time to time into tar files for quicker downloads. |
Interesting idea but the size would be prohibitive, especially to keep updated for all users. |
@fosskers You're sure? There's only 87984 packages in the AUR. So one sentence, a couple of keywords, a version number and a name as list wouldn't weight more than ten megabytes (3 MBytes compressed) I would have guessed. |
You'd be surprised. Keeping it updated for everyone wouldn't be worth it the complexity. |
I've seen that Aura did big steps in proving the AUR search, but I did one today where the result is odd to me (as user). I understand, why there are differences as a programmer. However it makes usability pretty hard if the search is bad:
Hope this can be improved somehow without much effort :)
The text was updated successfully, but these errors were encountered: