From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 02 14:13:51 2020 Received: (at 39258) by debbugs.gnu.org; 2 Mar 2020 19:13:51 +0000 Received: from localhost ([127.0.0.1]:38367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8qVj-0005cp-KG for submit@debbugs.gnu.org; Mon, 02 Mar 2020 14:13:51 -0500 Received: from mail-qv1-f65.google.com ([209.85.219.65]:45497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8qVi-0005cc-9m for 39258@debbugs.gnu.org; Mon, 02 Mar 2020 14:13:50 -0500 Received: by mail-qv1-f65.google.com with SMTP id r8so409224qvs.12 for <39258@debbugs.gnu.org>; Mon, 02 Mar 2020 11:13:50 -0800 (PST) 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; bh=3dNy6xvPlSYWj3ep0Yce7D5MwEW1Loy6IVw4MITxO1s=; b=E6Lh/5BeH7gKictrcysKB17GmdWPqgIqaIKEB/xwMFj35ceOf2y3hzdQDtLH33u8ZP HSpVrXyZ/XGZdf1qLwEA/a5SrQRMVQAqn1brBiHEo3pdvF0/ThjLnMTpmkpmcoQ8rdzX XPnF6wtJhymvsa1lj/HGCxgIT2GXFgzmKUbe/wh4sKbvWywg/naJJnaq/wMFCHm2D/Ti dVRi1ARuUdj1ZF7H/sUvuVDR48lHu3ssp09StgSpF7eWvtrALGoe0dQATBi9W5ElQABZ vp/X18sc0yhdpmmMJMSas1PwxsbzSIseYoM/mmWhxQCNkRAFXsRlL5w7FZS76+WYq7mT paNQ== 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; bh=3dNy6xvPlSYWj3ep0Yce7D5MwEW1Loy6IVw4MITxO1s=; b=jI8Zi8X0ny7B7Au0aAfFgTU5AYC5cFvz/Nbau5EnMuw5VAavbPc+sSwhkUvIGz//hV 6G9V9C5HEhgEdpmxo5tvsEdh/AOiQC1GAk6QB1/2IeO3TkTBmCScn8YkBoIrv6kkEYy4 4aE8OJ4mpt15PK5D//cEVvEHV5j6lqnshSPdN3OKhHuSQSBMP5oWvPm0og29K1TLtprs f9pDenU2GdURrQvlkTdp3w6uReSlcwDKera+RYXnn84zzI5K2qd7KmeM/sb3NVQm4LZH ChY2hRKVUxfHQ5qwkUdPptrqYbF7w5jnK2J+Nqk94Pq1k9o+mHj1GnckT36gHAbu6x3a LNiQ== X-Gm-Message-State: ANhLgQ2JRtjnMXURAn33xI2/tQjHDzNWsUhjZ271YZZ24+5OG0r7Vab0 ipqhlww1OKCfIxknKaKw2YX2Go9jmiXUFuMzj3k= X-Google-Smtp-Source: ADFU+vvTpbbrzmxXepwz7XyuNM52rUXPDmxKEaAgxivwYWW/MbgVYq6QUEVadvJgVjzHRXewxERE1+DVC22NiOgyc8I= X-Received: by 2002:a0c:f98e:: with SMTP id t14mr847559qvn.74.1583176424775; Mon, 02 Mar 2020 11:13:44 -0800 (PST) MIME-Version: 1.0 References: <20200227204150.30985-1-arunisaac@systemreboot.net> <87eeuf5dty.fsf@ambrevar.xyz> In-Reply-To: From: zimoun Date: Mon, 2 Mar 2020 20:13:33 +0100 Message-ID: Subject: Re: [PATCH 0/4] Xapian for Guix package search To: Arun Isaac Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 39258 Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , 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: -2.5 (--) Hi, After a quick benchmark: a. It is faster. Between x2 and x3. Really? b. The xapian relevance should truncated and examined in more details. --8<---------------cut here---------------start------------->8--- time guix search emacs | recsel -p name,relevance | head -n18 name: emacs relevance: 33 name: emacs-with-editor relevance: 19 name: emacs-restart-emacs relevance: 19 name: emacs-epkg relevance: 18 name: guile-emacs relevance: 17 name: emacs-xwidgets relevance: 17 real 0m1.530s user 0m1.827s sys 0m0.074s --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- time /tmp/test/bin/guix search emacs | recsel -p name,relevance | head -n18 name: emacs-helm-pass relevance: 5.0774748262821685 name: emacs-spark relevance: 4.898640632723127 name: emacs-evil-smartparens relevance: 4.898640632723127 name: emacs-howm relevance: 4.8638448958830685 name: emacs-el-mock relevance: 4.8638448958830685 name: emacs-strace-mode relevance: 4.693676055650271 real 0m0.440s user 0m0.482s sys 0m0.058s --8<---------------cut here---------------end--------------->8--- Here for example, Xapian does not return the package 'emacs' itself as the first. And worse, it is not returned at all. That's said, I do not know if it is really faster since: --8<---------------cut here---------------start------------->8--- guix search emacs | recsel -C -P name | wc -l 829 --8<---------------cut here---------------end--------------->8--- and --8<---------------cut here---------------start------------->8--- /tmp/test/bin/guix search emacs | recsel -C -P name | wc -l 10 --8<---------------cut here---------------end--------------->8--- Maybe I am doing a mistake. Well, thank you Arun for the Xapian bindings which will improve the searching experience. :-) And now it needs some polishing. All the best simo