From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 08:35:01 2020 Received: (at 39258) by debbugs.gnu.org; 9 Mar 2020 12:35:01 +0000 Received: from localhost ([127.0.0.1]:49936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBHcb-00025E-4w for submit@debbugs.gnu.org; Mon, 09 Mar 2020 08:35:01 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBHcZ-000250-9I for 39258@debbugs.gnu.org; Mon, 09 Mar 2020 08:35:00 -0400 Received: by mail-qt1-f194.google.com with SMTP id e20so6801346qto.5 for <39258@debbugs.gnu.org>; Mon, 09 Mar 2020 05:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hXNbi+sZS/8CstIh8f5lAfkkg89LaVQ/ULwY4A9dBGo=; b=DHsjdAEbYlZoFz69QE4evkHlOiYJTh7LQvWd3jIXWPWts4b07XSwrh5yksGu9ksm3P c7cOxmxWxLhJVbgEgy/FCHDH6bhrVHeRp34lV1wP6V3eHiekn/I+AtgrKKJs0Srnhbam 8n+Dhx9XcUY/e6WsYRUXtTiAXpwfoumYk5zwCZ79SvsZb7mz0sah0fSz29+K+0Fk1rAV W0koGW3gEG1Itejmy5jTD1SzNTdTQPD4S+kkn/yY5itYE39X3pRcGGtKrWPHv5uXyOF6 0r3PlY36rKG/+aP7FY4L7AVKIgHuDeXo6QmK6I/VM+BWLJK05+hKo2QFh+aRzwwEEkyV R17Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hXNbi+sZS/8CstIh8f5lAfkkg89LaVQ/ULwY4A9dBGo=; b=fJaT8A2LDJYfFgPpTp4tx2BN1y9rAMh/feku5Kjzn8+xfA6c5s6xRY1M4/hpObfoip 8x3Ur5GL0gSmFYvZMB0GiDM6eNJ+P8CNJpX7fQWd04MDxj8YZ3Wdf11OoCeQgR4gtenM Iqe+HPS2c2/XJTk9m8/mYX1WMDm7c6ZeRMZ1cYR1R/y7ClDSN0jtih8/+8GrGqqQCdmA 9NzwcHMBP54VG9judWAha2VHaV1dwxJFJGr+jIuyPG7k7CbiCZIB5PC6WxxArKnimOPL K9adVLLHnbn+ePttVCQfFlt6DRqGJCnNS29lAzQ/Y+cZz2ExuViVghpZ1I9jk9Eh/yZp QNew== X-Gm-Message-State: ANhLgQ1Jl8HSfNBHDMpCyHwSAU4wP6a4gj9LuU5L20gLkf9iFKV/19hS sWTBf+iNcZfgQMT6Wc5CToyjAhcW/Qphey7i2/E= X-Google-Smtp-Source: ADFU+vtX1+nedWy0pUqCoNX8ldYMpTxLwq3pGKUjaOtZqdPrmDjt1L7UaIFtqCnliqZu4hKluVlPWOIF3kZjZbzKLmw= X-Received: by 2002:ac8:2fd4:: with SMTP id m20mr13812947qta.313.1583757293658; Mon, 09 Mar 2020 05:34:53 -0700 (PDT) MIME-Version: 1.0 References: <20200307133116.11443-1-arunisaac@systemreboot.net> <87sgijgb1v.fsf@gnu.org> In-Reply-To: <87sgijgb1v.fsf@gnu.org> From: zimoun Date: Mon, 9 Mar 2020 13:34:40 +0100 Message-ID: Subject: Re: [PATCH v2 0/3] Xapian for Guix package search To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39258 Cc: Arun Isaac , Pierre Neidhardt , 39258@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Sat, 7 Mar 2020 at 21:33, Ludovic Court=C3=A8s wrote: > Arun Isaac skribis: > > Why not use a simpler package search results format like Arch Linux or = Debian > > does? We could just display the package name, version and synopsis like= so. > > > > inkscape 0.92.4 > > Vector graphics editor > > inklingreader 0.8 > > Wacom Inkling sketch format conversion and manipulation > > > > Why do we need the entire recutils format? If the user is interested, t= hey can > > always use `guix package --show` to get the full recutils formatted > > info. Having shorter search results will make everything even faster an= d much > > more readable. WDYT? > > What I like about the recutils format in this context is that it=E2=80=99= s both > human- and machine-readable. The examples in the manual show how it can > be useful to select the information displayed or to refine the search > (info "(guix) Invoking guix package"). > > Also: I=E2=80=99d recommend tackling one thing at a time. :-) I agree with Ludo. And IMHO, we should add "guix search --format=3D" mimicking how "git log" works. By default, displays as Arun proposes. Using '--format=3Dfull" as it is done now by default. And we could imagine "--format=3D%name \t %version \n %description" etc. > I think we should look at a profile of =E2=80=98package->recutils=E2=80= =99, there=E2=80=99s > probably room for improvement there. Interesting. Note that speed was the initial motivation but accuracy is another important one. As we discussed earlier when I showed an example with TF-IDF. And Xapian implemets the state-of-art (BM25) for scoring. All the best, simon