From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42022) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg4gk-0002Mm-Tw for guix-patches@gnu.org; Wed, 26 Jun 2019 05:58:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hg4gj-0001qR-UQ for guix-patches@gnu.org; Wed, 26 Jun 2019 05:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hg4gj-0001qC-Qc for guix-patches@gnu.org; Wed, 26 Jun 2019 05:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hg4gj-0003dq-Ig for guix-patches@gnu.org; Wed, 26 Jun 2019 05:58:01 -0400 Subject: [bug#36390] [PATCH 0/3] Improve 'guix search' relevance and display Resent-Message-ID: References: <20190626084338.3153-1-ludo@gnu.org> From: Ricardo Wurmus In-reply-to: <20190626084338.3153-1-ludo@gnu.org> Date: Wed, 26 Jun 2019 11:57:05 +0200 Message-ID: <87ef3gsm8e.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36390@debbugs.gnu.org Ludovic Court=C3=A8s writes: > This improves =E2=80=98guix search=E2=80=99 in two ways: > > 1. The relevance score now excludes things that do not match *all* > the regexps. So =E2=80=98guix search go game=E2=80=99 returns 28 re= sults instead > of 1,245 and the first one is =E2=80=98gnugo=E2=80=99; =E2=80=98guix= search ssh client=E2=80=99 > returns 14 results instead of 510; =E2=80=98guix search guile crypto= =E2=80=99 > returns just =E2=80=98guile-gcrypt=E2=80=99 instead of 279 results. > > 2. =E2=80=98guix search=E2=80=99 and =E2=80=98guix system search=E2=80= =99 now write at most a full > screen of results. You can pipe through a pager to view all the > results. Perfect, thank you for the patches! (I wonder why you chose to use =E2=80=9C(cut > <> 0)=E2=80=9D instead of = =E2=80=9Cpositive?=E2=80=9D for checking if a value is greater than zero.) -- Ricardo