guix-devel/guix
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
..
build build-system/waf: Use invoke. 2018-06-19 10:48:14 +02:00
build-system build-system/r: Accept #:r argument. 2018-06-18 13:51:28 +02:00
import build: Remove checks for 'nix-instantiate'. 2018-06-18 23:19:51 +02:00
scripts scripts: gc: Report size in MiBs instead of bytes. 2018-06-28 00:29:46 +02:00
store database: Allow for deterministic database construction. 2018-06-14 11:17:00 +02:00
tests
base16.scm
base32.scm
base64.scm
build-system.scm
cache.scm
ci.scm Add (guix ci). 2018-03-28 16:17:06 +02:00
combinators.scm
config.scm.in build: Remove checks for 'nix-instantiate'. 2018-06-18 23:19:51 +02:00
cpio.scm
cve.scm
cvs-download.scm
derivations.scm
discovery.scm discovery: Remove dependency on (guix ui). 2018-04-08 17:48:33 +02:00
docker.scm pack: Use 'with-extensions' when referring to (guix docker). 2018-06-01 15:21:28 +02:00
download.scm Merge branch 'master' into core-updates 2018-05-29 15:41:06 +02:00
elf.scm
ftp-client.scm
gcrypt.scm
gexp.scm Merge branch 'master' into core-updates 2018-06-01 23:41:40 +02:00
git-download.scm
git.scm git: Increase modularity and expose 'update-cached-checkout'. 2018-04-02 23:16:30 +02:00
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm
graph.scm
hash.scm
hg-download.scm
http-client.scm http-client: Send redirection messages to stderr. 2018-05-26 17:04:17 +02:00
i18n.scm
licenses.scm
man-db.scm profiles: Use 'with-extensions'. 2018-06-01 15:21:28 +02:00
memoization.scm
modules.scm modules: Report the search path in &missing-dependency-error. 2018-04-08 17:41:08 +02:00
monad-repl.scm
monads.scm
nar.scm store: Remove 'register-path'. 2018-06-14 11:17:00 +02:00
packages.scm packages: Add 'package-patched-vulnerabilities'. 2018-06-09 12:02:28 +02:00
pk-crypto.scm
pki.scm
profiles.scm profiles: Add 'properties' field to manifest entries. 2018-06-09 12:02:28 +02:00
profiling.scm
progress.scm
records.scm records: Make a couple of procedures available at expansion time. 2018-05-31 18:13:08 +02:00
scripts.scm pull: Install the new Guix in a profile. 2018-06-09 12:02:27 +02:00
search-paths.scm search-paths: Add 'set-search-paths'. 2018-05-10 14:53:57 +02:00
self.scm self: Add dependency on GnuTLS. 2018-06-27 23:30:44 +02:00
serialization.scm
sets.scm
ssh.scm
store.scm store: Add 'port->connection'. 2018-06-26 14:27:57 +02:00
svn-download.scm
tests.scm
ui.scm ui: Increase relevance score for exact matches. 2018-06-29 22:56:33 +02:00
upstream.scm discovery: Remove dependency on (guix ui). 2018-04-08 17:48:33 +02:00
utils.scm gnu: ldb: Fix build on 32-bit systems. 2018-06-16 21:35:25 +02:00
workers.scm
zlib.scm