From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FAKE_REPLY_C,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32020 invoked from network); 1 May 2022 05:14:35 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 1 May 2022 05:14:35 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nl1ui-000Ina-NL for ml@inbox.vuxu.org; Sun, 01 May 2022 00:14:32 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nl1uh-0084uO-BL for ml@inbox.vuxu.org; Sun, 01 May 2022 00:14:31 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nl1ug-0084uI-4i for ding@lists.math.uh.edu; Sun, 01 May 2022 00:14:30 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nl1ue-002qhI-1N for ding@lists.math.uh.edu; Sun, 01 May 2022 00:14:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tJIVqwzEZBGzZ9GG6VfphIZhupa9QmDSkHAsZ8GMp94=; b=b8WS3tsbMSkArUhnG+B/+eilYs 999S3NoD3p2FCtubtEgngqypvu8iW35NHuGi5xhgjLqBBSyuVN7g0l0gVu4FykQ1hV7orZ34BWUpQ VEdL8J3OohR165s4+rZT1kZSLqejZTkHlFLzySvtLRdHVpk/HB7d7XBL5YBsc+xoz2Mc=; Received: from mail.sergiodj.net ([2607:5300:60:3666::3]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nl1uW-0000QF-RH for ding@gnus.org; Sun, 01 May 2022 07:14:23 +0200 Received: from localhost (unknown [IPv6:2607:f2c0:ed84:8f1:da68:e24b:9d51:5f25]) by mail.sergiodj.net (Postfix) with ESMTPSA id C38F9A0110; Sun, 1 May 2022 01:14:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sergiodj.net; s=20160602; t=1651382057; bh=tqGnvVKlCFbFW69e9xjWWcF8beQRDY243hXB6l1exeA=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=QoC4RfjE2JUAHOwwJaPoes3F2bZIQsn8CehJYZO0fB54jlAESgNlJ61prlZ52OIsI AXjf+mVOu6FZotkrR2oJsZpZvcv2hganQ4f5AMo/ZuQ1Gti8za3EW50CoxHpyhP9nC 4O+QNlqQ5vGYQvAGem2f1O6WUooyisD51ijpBhGQ= From: Sergio Durigan Junior To: Eric Abrahamsen Cc: ding@gnus.org Subject: Re: gnus-search-imap and quoted queries X-URL: http://blog.sergiodj.net Date: Sun, 01 May 2022 01:14:17 -0400 In-Reply-To: <87zgkbhjpm.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 23 Apr 2022 09:01:57 -0700") Message-ID: <8735htj0ly.fsf@sergiodj.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk On Saturday, April 23 2022, Eric Abrahamsen wrote: > Sergio Durigan Junior writes: > >> On Tuesday, April 19 2022, I wrote: >> >>> I have GNUS configured to use a local Dovecot IMAP server (a fairly >>> common setup, I think) and I've been trying to get gnus-search-imap >>> working. I set gnus-search-use-parsed-queries to t, by the way. >>> >>> I noticed that when I specify a quoted query as the search input, the >>> results don't reflect what I'd expect. >> >> FWIW, I finally had some time to look deeper into this and found that >> the culprit was the Dovecot FTS plugin I was using (fts-xapian). >> It doesn't follow the IMAP RFC strictly and therefore can't/won't do >> substring searches. >> >> I'm now using another Xapian-based plugin called fts-flatcurve which >> DTRT. >> >> Thanks for the help, it's been fun investigating this problem. > > Hey that's pretty interesting. Looks like I'm using lucene, which seems > to work fine. I wonder if it merits a brief mention in the manual that > different backends behave differently. I certainly wouldn't mind seeing this possible idiosyncrasy mentioned in the manual. WDYT about the patch below? -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/ >From ff85d8b3df751342de6b0071b9c17688086fe744 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 1 May 2022 01:11:42 -0400 Subject: [PATCH] Mention different behaviours in IMAP FTS plugins * doc/misc/gnus.texi (Search Engines): Mention different behaviours in IMAP FTS plugins. --- doc/misc/gnus.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index e51ae7d424d..03330224e09 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi @@ -21727,6 +21727,13 @@ Search Engines to manage updates yourself, though this will likely change in the future. +If you use the IMAP search engine you may want to configure your IMAP +server to provide Full Text Search (FTS) functionality, which greatly +improves the performance and results. Beware though that some FTS +backends may not implement text search as described by RFC 3501, which +states that substring search should be performed. This difference in +behaviour can ultimately affect the search results. + Lastly, all search engines accept a @code{raw-queries-p} option. This indicates that engines of this type (or this particular engine) should always use raw queries, never parsed (@pxref{Search Queries}). -- 2.35.1