From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 045B9429E20 for ; Tue, 25 Jan 2011 18:19:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.99 X-Spam-Level: X-Spam-Status: No, score=-0.99 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jRWxl8smCw5D; Tue, 25 Jan 2011 18:19:18 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 34FF4431FB6; Tue, 25 Jan 2011 18:19:18 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 65B992540DE; Wed, 26 Jan 2011 12:19:17 +1000 (EST) From: Carl Worth To: Austin Clements , Mark Anderson Subject: Re: Strange match to my query In-Reply-To: References: <3wd4o8wa7fx.fsf@testarossa.amd.com> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Wed, 26 Jan 2011 12:19:17 +1000 Message-ID: <8762tc2yqi.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2011 02:19:19 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 25 Jan 2011 19:51:14 -0500, Austin Clements wr= ote: > Well-constructed test message. Xapian's query parser is actually doing t= he > right thing [1] and this is a bug in the way notmuch indexes address list > headers. For each address, _notmuch_message_gen_terms resets the term > generator's term position, so your To header indexes with positions as > c:1 hello:2 com:3 K:1 R:2 world:3 com:4 Thanks, Austin! I was actually giving a demo of notmuch to someone yesterday who was really interested in the details of how Xapian actually stores things. I dug around a bit with delve and we were both really surprised by the position results we were seeing. Neither of us could make any sense of them at all. And thanks, Mark for the bug report and the nice test case. I'll add this to the test suite, and fix it. And that will give us yet one more reason for all of us to rebuild our databases after the upcoming release. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFNP4Sl6JDdNq8qSWgRAkRmAJwICXvfIhDZlTKP8OnTjO/AMxQ9RgCfXNoB qIGc7gNG25Jyk1dwFLq/NzM= =9G1i -----END PGP SIGNATURE----- --=-=-=--