Re: Apparently, terms with a common prefix are *not* connected by implicit "OR"

Subject: Re: Apparently, terms with a common prefix are *not* connected by implicit "OR"

Date: Sun, 11 Aug 2019 20:08:58 -0300

To: Jorge P. de Morais Neto, notmuch@notmuchmail.org

Cc:

From: David Bremner


jorge+list@disroot.org (Jorge P. de Morais Neto) writes:

> Hi.  The NOTMUCH-SEARCH-TERMS man page says:
>
>     Each term in the query will be implicitly connected by a logical AND
>     if no explicit operator is provided (except that terms with a common
>     prefix will be implicitly combined with OR).
>
> However, in practice I get different results:
>     $ notmuch count '(to:pontodosconcursos.com.br OR to:jorge+cp+concurso@disroot.org)'
>     66
>     $ notmuch count '(to:pontodosconcursos.com.br to:jorge+cp+concurso@disroot.org)'
>     0
>

Thanks for the report. As a test, can you try with

     $ notmuch count '(to:pontodosconcursos.com.br to:"jorge+cp+concurso@disroot.org")'

I suspect that will work around the problem, which I believe is related
to the way that notmuch uses the xapian parser (in order to provide
regexp matching for some prefixes). In particular, if I try that with
NOTMUCH_DEBUG_QUERY=yes in the environment I can see the implicit OR.

d


_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: