From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Lemmer Webber Subject: Re: Re-approaching package tagging Date: Thu, 20 Dec 2018 05:57:45 -0500 Message-ID: <87h8f8xy6u.fsf@dustycloud.org> References: <875zvsq8ov.fsf@dustycloud.org> <87imzrgjit.fsf@gnu.org> <87h8fa7ums.fsf@dustycloud.org> <871s6dwob2.fsf@gnu.org> <87pntwskgn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZw1U-0005HB-Oe for guix-devel@gnu.org; Thu, 20 Dec 2018 05:57:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZw1T-0007vD-Rr for guix-devel@gnu.org; Thu, 20 Dec 2018 05:57:48 -0500 In-reply-to: <87pntwskgn.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix Devel Ludovic Court=C3=A8s writes: > Hello, > > zimoun skribis: > >>> And how the regexp works ? >>> I am not able to find some doc... I am diving in the code but it is >>> not easy to find. :-) >> >> If I understand well, basically the code is here, right? >> http://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/package.scm#= n754 >> >> And the regexp engine comes from the module (ice-9 regex), right? >> Documented there: >> https://www.gnu.org/software/guile/manual/html_node/Regular-Expressions.= html#Regular-Expressions > > Yes, just plain POSIX regexps. > >>> For example, how to search package with the name emacs and not the name= emacs- >>> or how to search package with the name emacs and with the decription GN= U? >>> The '-s foo -s bar' is OR. What about the AND? >>> etc. >> >> This needs more than the actual implementation, right? > > Having multiple -s flags makes it an =E2=80=9Cor=E2=80=9D but it influenc= es the > relevance score: > > https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-pac= kage.html#index-searching-for-packages > > So if you take the results with the highest score, that=E2=80=99ll probab= ly be > those that match all the regexps. > > HTH! > > Ludo=E2=80=99. I wonder for keywords that would be awkward to "force" into the description if we could have an "extra keywords" section? Then we can skip tagging, but in case a package's description didn't comfortably fit that word, you can still find it by it. Then it's not separate tagging, just extra words to find a package by that the description didn't say. WDYT?