diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-06-29 12:17:41 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-06-29 22:56:33 +0200 |
commit | fd1395c4982dd8cf7fe9843317d1ebb1e5d78bee (patch) | |
tree | db9fa59f040c2f94978a08f9f8441869c5b5dceb /THANKS | |
parent | 373cc3b74a6ad33fddf75c2d773a97b1775bda8e (diff) |
ui: Increase relevance score for exact matches.
Previously "guix package -s python" would have 'python2-zope-interface' as
its first result (relevance: 10), followed by many other python-*
packages with the same score, while 'python' itself would come
later (relevance: 7).
This change makes 'python' the first result (relevance: 27).
Reported by Gábor Boskovits.
* guix/ui.scm (relevance)[score]: Use 'fold-matches' instead of
'match:count' to counter the number of maches. Give more weight to
exact matches.
Diffstat (limited to 'THANKS')
0 files changed, 0 insertions, 0 deletions