From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3FA3D6DE109D for ; Wed, 28 Aug 2019 08:17:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.397 X-Spam-Level: X-Spam-Status: No, score=-0.397 tagged_above=-999 required=5 tests=[AWL=-0.196, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7_l4z5fN_g1e for ; Wed, 28 Aug 2019 08:16:59 -0700 (PDT) Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by arlo.cworth.org (Postfix) with ESMTPS id F2AE56DE1075 for ; Wed, 28 Aug 2019 08:16:58 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id AAD8923F66; Wed, 28 Aug 2019 17:16:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RicxONK5m6R2; Wed, 28 Aug 2019 17:16:54 +0200 (CEST) From: Jorge P. de Morais Neto DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1567005414; bh=x+MY5tlqyjPYGEH7xJPrD9IBYEehNtSu9A+pZEJaR7k=; h=From:To:Subject:In-Reply-To:References:Date; b=EP+3JM5dUaaf2hVEgxo0rXnN1gjsmQVfG+hcWY8YmPAbyXe2BK4aCMKB3/uTyYyUC 4q2yxiYUug/eu2QHhBB9G2BxskMWndnCa0qZsIIV5Pv2kkbHgrgdq1l2jvDPLvZS8F AXIWTawArD2WHuvfcNqXT75838OKvM70BZz3KyN2unhkfRmaH4h5EPjTJVI0MMGBWf 2SJZFkOdp9/6aLJnnl+nl8QaTw9V3hnt08AfHkC/gWcxzqyPckJmrmKlcj39W66PB/ OeguPNKei39EN3Fc6ZPh54qGB/QsQeDJDqgslb/nDZCMg9HH/3oeDS0c8qd9Hpy/kH YblAETSbvDhhA== To: David Bremner , notmuch@notmuchmail.org Subject: Re: Strange, incoherent query parsing In-Reply-To: <87d0gp8uw3.fsf@tethera.net> References: <877e6ywlt7.fsf@disroot.org> <87d0gp8uw3.fsf@tethera.net> Date: Wed, 28 Aug 2019 12:16:43 -0300 Message-ID: <874l21wc9w.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 28 Aug 2019 15:17:00 -0000 Hello, Em 2019-08-28T07:08:28-0300, David Bremner escreveu: > I don't know about the other cases but here there is an extra closing > ')', which confuses the query parser. I agree that an error report > would be nicer, but we don't currently have that option from Xapian. Oops. Sorry about that. But still there seem to be real errors. The first query[1] should match messages containing both "Sa=C3=BAde" and "Geap" (sans the double quotes) in the subject, but does not. 1: 'subject:("Sa=C3=BAde" "Geap") OR subject:xplitz' Also note that the fourth query[2] should have AND as the implicit boolean operator, because 'subject:' is not a boolean prefix. You explained in the other thread the implicit OR operator only applies for search terms with the same /boolean/ prefix. 2: 'subject:"Sa=C3=BAde" subject:"Geap"' Regards --=20 - I am Brazilian. I hope my English is correct and I welcome feedback - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z - Free/libre software for Android: https://f-droid.org/ - [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]