[Pamac 9.2.x] Relevance of search results
Hi.
It's good that search results are sorted by relevance by default, but the results aren't relevant enough.
- AUR packages
Let's say you're seeking for "open-vm-tools" with Pamac GTK. Please enable AUR support and type "open" in the input search. You should see "open-adventure" and others files from AUR on the top, where packages from "community" repository are way below and mixed with AUR packages.
Expected result: Packages from base repos should have higher score, AUR packages should have lower scoring. Solution: Packages from standard repositories should be little boosted.
- Search query
Let's say you're seeking for "open-vm-tools" again, but type "open vm". As a result you will get:
- some installed apps at the top
- first package to install will be "Avidemux" (???)
- open-vm-tools will be way below
Expected: Packages with names containing words "open" and "vm" should be at the top. They should be higher if comes from base repos, and lower when comes from AUR.
Solution is more complicated:
- query string should be tokenized properly (default "AND" operator, support for "+" and "-" operators, etc)
- package names should have high boost
- package category should have boost, but lower than name
- package description should not be boosted
$ pamac-manager --version
Pamac 9.2.2-1