unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Re-approaching package tagging
Date: Thu, 20 Dec 2018 08:53:12 +0100	[thread overview]
Message-ID: <87pntwskgn.fsf@gnu.org> (raw)
In-Reply-To: <CAJ3okZ1nTmso_zCJh8MUuc-tvhCdcMjapamZjUNA58sSH4fZFg@mail.gmail.com> (zimoun's message of "Thu, 20 Dec 2018 00:12:04 +0100")

Hello,

zimoun <zimon.toutoune@gmail.com> 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 GNU?
>> 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 “or” but it influences the
relevance score:

  https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-package.html#index-searching-for-packages

So if you take the results with the highest score, that’ll probably be
those that match all the regexps.

HTH!

Ludo’.

  reply	other threads:[~2018-12-20  7:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 19:01 Re-approaching package tagging Christopher Lemmer Webber
2018-12-17 20:57 ` swedebugia
2018-12-17 23:08   ` zimoun
2018-12-18  7:48   ` Catonano
2018-12-18 11:34     ` Catonano
2018-12-19  6:51     ` swedebugia
2018-12-19  7:42       ` swedebugia
2018-12-18 11:29 ` Ludovic Courtès
2018-12-18 14:54   ` Christopher Lemmer Webber
2018-12-18 10:36     ` zimoun
2018-12-19 15:04       ` Ludovic Courtès
2018-12-18 20:46         ` zimoun
2018-12-19 23:12           ` zimoun
2018-12-20  7:53             ` Ludovic Courtès [this message]
2018-12-20  9:44               ` Chris Marusich
2018-12-21 21:00                 ` Ludovic Courtès
2018-12-20 10:57               ` Christopher Lemmer Webber
2018-12-20 11:55                 ` swedebugia
2018-12-21 21:06                 ` Ludovic Courtès
2018-12-19 15:05     ` Ludovic Courtès
2018-12-18 20:48       ` zimoun
2018-12-20  7:55         ` Ludovic Courtès
2018-12-20 14:42           ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pntwskgn.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).