From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2FP5KqMVsmO7YgEAbAwnHQ (envelope-from ) for ; Mon, 02 Jan 2023 00:22:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IMzjKqMVsmPYpQAA9RJhRA (envelope-from ) for ; Mon, 02 Jan 2023 00:22:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 48BDF3A090 for ; Mon, 2 Jan 2023 00:22:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pC7eV-00037x-7E; Sun, 01 Jan 2023 18:22:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pC7eU-00037k-5o for guix-patches@gnu.org; Sun, 01 Jan 2023 18:22:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pC7eT-0002tM-OZ for guix-patches@gnu.org; Sun, 01 Jan 2023 18:22:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pC7eT-00056E-Jx for guix-patches@gnu.org; Sun, 01 Jan 2023 18:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60410] [PATCH 2/7] xapian: Declare some prefixes as boolean. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Jan 2023 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60410 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Arun Isaac Cc: 60410@debbugs.gnu.org Received: via spool by 60410-submit@debbugs.gnu.org id=B60410.167261528919563 (code B ref 60410); Sun, 01 Jan 2023 23:22:01 +0000 Received: (at 60410) by debbugs.gnu.org; 1 Jan 2023 23:21:29 +0000 Received: from localhost ([127.0.0.1]:41996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pC7dw-00055T-Lf for submit@debbugs.gnu.org; Sun, 01 Jan 2023 18:21:28 -0500 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pC7du-00055J-JM for 60410@debbugs.gnu.org; Sun, 01 Jan 2023 18:21:27 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1672615283; cv=none; d=zohomail.com; s=zohoarc; b=Oma9i/PE/PMXEaWT8Oip/+7c96FrHus4iqnP8Mt59OuZglZuxU1nARsdQSmVlHyi4NupWi8+MyXZxlUg52gKADtLXyDcvr4UDhsGDpufjppiuJQSK9AktwLtx536SVE5dCxXbddrRph7Pu4d+MXIts8VdINMzTjPe/jx9UJGFr4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672615283; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=+pGDsWKaqg2WKiys7ca5xmoXYjQ/ejlGRgk7u7R1hFM=; b=eFwrg5yr2l1sBYeAez+M1XnHoZKTh1J8mTrfwGNfCk0dbR8g87CAsDZFodrpnutBda/vG3T/9NmnLhzOD1/lG1b4XKe9CQarhWKLNLoZuKmOoWF3zZCAxK4vLSjV72JZ270jrgnqPqAKz5eL9VsMmcfH4COi3nUpF1pirrFUcig= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672615283; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=+pGDsWKaqg2WKiys7ca5xmoXYjQ/ejlGRgk7u7R1hFM=; b=S8zEiD5N7RoNpaO8Qh2WSuwqHgW7XDepdPmI/nWZbzyPRC2efeAHNhv/HukDvVtq 1xi2ByYI/lYHxTUoSug0VUpS3IDSD9wyJQc+bXZZgIsXrAyZeW9wNX2vc2NPyhAYcjK ezfWoj5oopDHf+3+GpdA/Zz8NdBiMfDkz4kEnRPs= Received: from localhost (i5E862C54.versanet.de [94.134.44.84]) by mx.zohomail.com with SMTPS id 1672615282483787.4438962902321; Sun, 1 Jan 2023 15:21:22 -0800 (PST) References: <20221229201809.27997-1-arunisaac@systemreboot.net> <20221229202400.28565-2-arunisaac@systemreboot.net> User-agent: mu4e 1.8.13; emacs 28.2 From: Ricardo Wurmus Date: Mon, 02 Jan 2023 00:19:54 +0100 In-reply-to: <20221229202400.28565-2-arunisaac@systemreboot.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87edsd6du8.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672615331; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+pGDsWKaqg2WKiys7ca5xmoXYjQ/ejlGRgk7u7R1hFM=; b=eo/as7xHIFLXRMtPR536fO6j7wOGmcdX1tOIa3HU3FxnCLpkHqoSQ1WMZfuBVe9XlzXnVG Nk4xEc19Xh8W25H3ZKMTo4HNnUi7QMQ32xm4OclEGn/MYHy7NkIZeQO0t6UvVTt4J7s8/1 EZ2qYxy1rNlTFLpv6hWYi3u9j1U/1qjbpiQzt0Jdsza8EqfnfPGTryavewg8sB53Cs+oha 09k8D/jLQSOv7eNvBQTXv+Plpog+j7ASGkcxQmMm2G6fNC3JOvdG+rKzrxQmuuNR3J2x/c 4nkIgtQT/OHuxwFjsTo6r2u8yeOqU0rvBUtactHSMKJaJAjhHvUwey8Ko5rXXw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=S8zEiD5N; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1672615331; a=rsa-sha256; cv=fail; b=RoODAclNm401YYRuhRuKUzzJJofBKzo3H3kKe1yk5EN/FLqN6eO4dkqmsVrZa9yHcdTVDH jV0MkFSWNljTUO7Hrmm53OZNRvB5PvVf2W6z5WNPgt7CePoKikbChikRcEKAUBSQ2D0a3E AqCoDcI0PH8KcE/CKCER+KB9GKjDQPKW0TeKoAPUMus+moLpSo9dZe8DOWbn/tgCuHxEog Hlnk9gzRG26Bsx0h0WN91+Eyp+71GfYrpkELCDw6Jd7co/Wudlcg8rsXCbX1VhXlNrNH8E 22p5sGFtM9lWJXKwSuduCZCRG6yFAHZXmsxitA4YasJHme3kKR6/jvqrym4RiQ== X-Spam-Score: 3.45 X-Migadu-Queue-Id: 48BDF3A090 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=S8zEiD5N; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 3.45 X-TUID: vbeyen7+9mOE Hi Arun, > Some prefixes will only ever be used to filter the rest of the query > and not for matching approximately using relevance weighting > schemes. Such prefixes should be indexed as boolean prefixes. [=E2=80=A6] > @@ -324,14 +328,14 @@ intact." > ;; prefixes for field search. > (query (parse-query* querystring* > #:stemmer (make-stem "en") > - #:prefixes '(("submitter" . "A") > - ("author" . "XA") > - ("subject" . "S") > - ("owner" . "XO") > - ("severity" . "XS") > - ("tag" . "XT") > - ("status" . "XSTATUS") > - ("msgid" . "XU")))) > + #:prefixes '(("subject" . "S")) > + #:boolean-prefixes '(("author" . "X= A") > + ("msgid" . "X= U") > + ("owner" . "X= O") > + ("severity" . "X= S") > + ("status" . "X= STATUS") > + ("submitter" . "A= ") > + ("tag" . "X= T")))) This breaks two tests, which allow searching for submitters with partial names, e.g. =E2=80=9CRicardo=E2=80=9D instead of my full name and email add= ress. I think we should move submitter, author, and owner back to the list of regular prefixes. --=20 Ricardo