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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14171 invoked from network); 1 Feb 2022 16:35:27 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 1 Feb 2022 16:35:27 -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 1nEw7q-006qO4-E9 for ml@inbox.vuxu.org; Tue, 01 Feb 2022 10:35:26 -0600 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 1nEw7p-003ma4-Rv for ml@inbox.vuxu.org; Tue, 01 Feb 2022 10:35:25 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nEw7o-003mZx-Mw for ding@lists.math.uh.edu; Tue, 01 Feb 2022 10:35:24 -0600 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 1nEw7m-00Egcs-Q7 for ding@lists.math.uh.edu; Tue, 01 Feb 2022 10:35:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2PMm+BjhKqPttWRePp84lgRI3ri/khvnk/yTp7KNFOQ=; b=VGxOuff1TyNrnEW0gUIeFsopzM A86o+0RKPoR0zXY9aPFX/7Zau2VH2iph31w7ad2CwLikYot1I+4P/LHMZ7HoNPDEUm0HXyTY8LyeC 2D3oiIeXB+qfmQ16fws5UwPNruNQSzcDzMFCsgXpPnuwoW2AKjALYzKJ+nEAQjZrj/0A=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEw7e-00016T-Vq for ding@gnus.org; Tue, 01 Feb 2022 17:35:17 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nEw7d-0002eY-0C for ding@gnus.org; Tue, 01 Feb 2022 17:35:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: search engine for virtual group? Date: Tue, 01 Feb 2022 08:35:06 -0800 Message-ID: <87pmo6ilz9.fsf@ericabrahamsen.net> References: <877dafj7ey.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:KsCnOtCh8ZSP9JGDsHmrfqcC5+o= List-ID: Precedence: bulk Eric S Fraga writes: > Hello all, > > I have an nnvirtual group that combines a number of nnml groups. I > would like gnus search to work on that folder using notmuch but gnus > does not seem to allow setting the search engine for a virtual group. > Any suggestions? Interesting question! First of all I don't think it will ever work with nnvirtual, as there's no integration of search and the nnvirtual backend at all. You'll have to use the nnselect backend, which can do everything that nnvirtual can do. Steps would be: - Recreating the basic virtual setup using nnselect instead. I'm not 100% how this should look, but I know it's doable. We may have to rope Andy in for advice. There should probably be a special interactive command to make this use-case easier. - Searching the group: I _think_ this should work transparently, with no additional configuration. nnselect knows which component groups make up a virtual group, knows how to get a list of the servers that own those groups, and should be able to route the same search query to each of those servers. In theory you should be able to have a virtual group made of some groups from an IMAP server and some from a nnml server that uses notmuch, and results will be returned transparently from the two different search engines. I've never actually tried this, though (making an nnselect group from an nnselect group), so it might take a little tweaking. Basically I was waiting for someone to ask :) > PS - I was confused by this description of a variable: > > gnus-search-engine is a variable without a source file. > > This variable is obsolete since 25.1; use 'gnus-search-engine > instead Some of this very confusing stuff (the byte compiler would produce similarly nonsensical complaints) has been fixed recently. Though not completely; when I do `describe-variable' I get: gnus-search-engine’s value is ‘gnus-search-engine’ Abstract base class for Gnus search engines. This variable is obsolete since 25.1; use \='gnus-search-engine instead :(