Re: Thread subqueries

Subject: Re: Thread subqueries

Date: Sat, 12 May 2018 11:01:09 -0300

To: Tomi Ollila, Daniel Kahn Gillmor,


From: David Bremner

Tomi Ollila <> writes:
> question: how does these differ (processing-wise):
>          $ notmuch count  'thread:" tag:dkg"'

the thread field processor receives the string " tag:dkg"
(without the quotes) which it treats as a thread id, and doesn't match

>          $ notmuch count  'thread:{ tag:dkg}'

the t.f.p. receives the string "{"
(without quotes) because the top level query parser splits at spaces,
unless prevented by "". This it considers syntactically invalid, rather
than silently dropping the second term.

>          $ notmuch count 'thread:"{ tag:dkg}"'

The t.f.p. receives the string "{ tag:dkg}" (without
quotes). It notes the first and last character, and triggers a subquery

The thing to keep in mind is that we have no control over the top level
"tokenization" by Xapian, except for using "".
notmuch mailing list