From a542aa62faed15a81900edd24b337e8bc107d863 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 28 Jan 2014 19:44:20 +2000 Subject: [PATCH] Re: Unexpected search results --- 8c/7cb7a8d22e2ef7c396618ff217d13a505cdedb | 83 +++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 8c/7cb7a8d22e2ef7c396618ff217d13a505cdedb diff --git a/8c/7cb7a8d22e2ef7c396618ff217d13a505cdedb b/8c/7cb7a8d22e2ef7c396618ff217d13a505cdedb new file mode 100644 index 000000000..496023a58 --- /dev/null +++ b/8c/7cb7a8d22e2ef7c396618ff217d13a505cdedb @@ -0,0 +1,83 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 7E1BE431FBD + for ; Mon, 27 Jan 2014 15:44:32 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 6cgzi3VDk7RA for ; + Mon, 27 Jan 2014 15:44:28 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9A739431FBC + for ; Mon, 27 Jan 2014 15:44:28 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1W7vqq-00084X-Fm; Mon, 27 Jan 2014 19:44:24 -0400 +Received: (nullmailer pid 24136 invoked by uid 1000); Mon, 27 Jan 2014 + 23:44:20 -0000 +From: David Bremner +To: paul.melis@surfsara.nl, notmuch@notmuchmail.org +Subject: Re: Unexpected search results +In-Reply-To: <52E63086.1050001@surfsara.nl> +References: <52E63086.1050001@surfsara.nl> +User-Agent: Notmuch/0.17+53~g3e1d7f6 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Mon, 27 Jan 2014 19:44:20 -0400 +Message-ID: <8761p5kn1n.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +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: Mon, 27 Jan 2014 23:44:32 -0000 + +Paul Melis writes: + +> Hi, +> +> How exactly does the search function work when it comes to things like +> searching in the from or subject field? See the below queries and (lack +> of) results: +> +> paulmlocal@sara11006:/data$ notmuch search from:dem +> paulmlocal@sara11006:/data$ notmuch search from:demi +> paulmlocal@sara11006:/data$ notmuch search from:demiu +> paulmlocal@sara11006:/data$ notmuch search from:demiur +> paulmlocal@sara11006:/data$ notmuch search from:demiurg +> thread:0000000000012d53 January 18 [1/5] Demiurg HG| Paul Melis, XXXXX +> thread:0000000000011b82 November 14 [3/6] Demiurg HG| Paul Melis; XXXXX +> +> Only the last queries returns the mails I was looking for, while +> prefixes of the query don't return anything. Even stranger is that the +> actual from e-mail address is demiurghg@...., so why does "from:demiurg" +> match (which is also a prefix of the mail address), but all the other +> don't match? + +I guess it has to do with the mysteries of stemming. There is some +information at + + http://notmuchmail.org/searching/ + +In your case, it would probably help to try + +notmuch search from:"demi*" + +Note that the * only works at the end. -- 2.26.2