Files
George cfb74c7bdb change search ordering to prefer name and summary matches
Search in F-Droid Client is currently not doing any ranking. This adds a very simple
ranking scheme by putting apps matching in the name field before summary matches
before everything else. The fallback sort order (and the order for an empty search query)
is still by last updated. The alphabetical order was removed as sorting alphabetically
in 3 sublists is confusing and doesn't really add any extra value.

Multiple terms need to all have a match in the field for a result to be
ranked in the appropriate match category (name, summary, everything else)

The generated sortOrder query when searching for "email client" looks like this:

case when fdroid_app.name like '%email%' and fdroid_app.name like '%client%' then 1
     when fdroid_app.summary like '%email%' and fdroid_app.summary like '%client%' then 2
     else 3 end, fdroid_app.lastUpdated desc
2020-06-26 09:03:53 -04:00
..
2020-04-22 15:01:37 +02:00