From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85015 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and notmuch? Date: Thu, 25 Sep 2014 01:40:57 +0800 Message-ID: <87fvfgq5li.fsf@ericabrahamsen.net> References: <87d2ams491.fsf@ericabrahamsen.net> <87r3z1pd7w.fsf@ericabrahamsen.net> <87r3z1azyx.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1411580267 3540 80.91.229.3 (24 Sep 2014 17:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2014 17:37:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33259@lists.math.uh.edu Wed Sep 24 19:37:38 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XWqVT-0005iM-23 for ding-account@gmane.org; Wed, 24 Sep 2014 19:37:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XWqUX-0006d6-3s; Wed, 24 Sep 2014 12:36:37 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XWqUV-0006cl-Cv for ding@lists.math.uh.edu; Wed, 24 Sep 2014 12:36:35 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XWqUT-0003As-Fg for ding@lists.math.uh.edu; Wed, 24 Sep 2014 12:36:34 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWqUR-0006KK-Iw for ding@gnus.org; Wed, 24 Sep 2014 19:36:31 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XWqUR-0004Yj-4f for ding@gnus.org; Wed, 24 Sep 2014 19:36:31 +0200 Original-Received: from 218.23.156.110 ([218.23.156.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2014 19:36:31 +0200 Original-Received: from eric by 218.23.156.110 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2014 19:36:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.23.156.110 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:4ekqCZRxJhdaC2y5ZbPxCBSFwVs= X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85015 Archived-At: asjo@koldfront.dk (Adam Sjøgren) writes: > Eric Abrahamsen writes: > >> I just set up a new system with the lucene text indexer, and it works >> much better. > > Than what? Than the native imap search, which is god-awfully slow. To be clear, I use dovecot as a local imap cache. Originally I wasn't using it as a daemon: mail came in via isync, which called dovecot at /usr/lib/dovecot/imap. Then gnus called the same executable via nnimap-shell-program to get the mail. Dovecot only "woke up" when one or the other program called it. Nnir search just used whatever search facilities dovecot provided out of the box. It was slow. I read about integrating lucene into dovecot, and as far as I could tell it wouldn't work when you were just calling dovecot's imap executable -- you had to be running a dovecot instance. So I switched to an always-running dovecot instance, configured the lucene indexer, and now the exact same nnir searches go like lightning. That's basically a summary of the blog post :) E