From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: `guix search` feature or bug? Date: Wed, 17 Jul 2019 23:31:21 +0200 Message-ID: <87y30w73h2.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51177) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnrWK-0004wf-KR for guix-devel@gnu.org; Wed, 17 Jul 2019 17:31:29 -0400 In-Reply-To: (zimoun's message of "Wed, 17 Jul 2019 15:40:29 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: zimoun Cc: Guix Devel Hi, zimoun skribis: > An example describes better than words. :-) > > guix package --show=3Dtuxpaint > > And one can read the terms `software` in the synopsis and `tools` in > the description. > However, `guix search software tools` does not output the package `tuxpai= nt`. > > guix search software tools | recsel -C -P name | sort > > From the function `relevance` in `guix/ui.scm`, if I understand well, > it seems expected. Each field deals with the regexp and the terms > `software` and `tools` does not appear both in only one field. > > Is this behaviour expected? Not really! It=E2=80=99s the result of commit 8874faaaac665100a095ef25e39c9a389f5a397f, but I agree that what you expected would be nicer. We should fix it. Do you want to give it a try? :-) Thanks, Ludo=E2=80=99.