From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:50359) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg3XC-0000sG-1v for guix-patches@gnu.org; Wed, 26 Jun 2019 04:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hg3X9-0002f8-Jl for guix-patches@gnu.org; Wed, 26 Jun 2019 04:44:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48894) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hg3X8-0002eJ-O7 for guix-patches@gnu.org; Wed, 26 Jun 2019 04:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hg3X8-00089I-LS for guix-patches@gnu.org; Wed, 26 Jun 2019 04:44:02 -0400 Subject: [bug#36390] [PATCH 0/3] Improve 'guix search' relevance and display Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:50310) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg3Wz-0000s7-KQ for guix-patches@gnu.org; Wed, 26 Jun 2019 04:43:54 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 26 Jun 2019 10:43:38 +0200 Message-Id: <20190626084338.3153-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36390@debbugs.gnu.org Hello Guix! This improves ‘guix search’ in two ways: 1. The relevance score now excludes things that do not match *all* the regexps. So ‘guix search go game’ returns 28 results instead of 1,245 and the first one is ‘gnugo’; ‘guix search ssh client’ returns 14 results instead of 510; ‘guix search guile crypto’ returns just ‘guile-gcrypt’ instead of 279 results. 2. ‘guix search’ and ‘guix system search’ now write at most a full screen of results. You can pipe through a pager to view all the results. Thoughts? Ludo’. Ludovic Courtès (3): ui: 'relevance' considers regexps connected with a logical and. syscalls: Add 'terminal-rows'. ui: Add 'display-search-results' and use it. guix/build/syscalls.scm | 37 +++++++++++------ guix/scripts/package.scm | 41 ++++++++----------- guix/scripts/system/search.scm | 44 +++++++++----------- guix/ui.scm | 75 ++++++++++++++++++++++++++++------ tests/syscalls.scm | 5 ++- tests/ui.scm | 27 +++++++++++- 6 files changed, 155 insertions(+), 74 deletions(-) -- 2.22.0