Ludovic Courtès fd1395c498
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.
2018-06-29 22:56:33 +02:00
..
2018-06-19 10:48:14 +02:00
2017-07-21 17:03:24 +02:00
2018-03-28 16:17:06 +02:00
2017-01-28 18:55:20 +01:00
2017-05-03 16:16:17 +02:00
2018-03-08 11:56:20 +01:00
2017-11-08 22:31:58 +01:00
2018-03-20 17:17:58 +01:00
2018-06-01 15:21:28 +02:00
2018-06-14 11:17:00 +02:00
2017-12-12 18:11:22 +01:00
2018-06-27 23:30:44 +02:00
2018-06-26 14:27:57 +02:00