From: David Bremner <david@tethera.net>
To: Tomi Ollila <tomi.ollila@iki.fi>,
Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
notmuch@notmuchmail.org
Subject: Re: Thread subqueries
Date: Sat, 12 May 2018 11:01:09 -0300 [thread overview]
Message-ID: <87fu2x6kii.fsf@tethera.net> (raw)
In-Reply-To: <m2bmdl2eia.fsf@guru.guru-group.fi>
Tomi Ollila <tomi.ollila@iki.fi> writes:
>
> question: how does these differ (processing-wise):
>
> $ notmuch count 'thread:"date:1month..now tag:dkg"'
the thread field processor receives the string "date:1month..now tag:dkg"
(without the quotes) which it treats as a thread id, and doesn't match
anything
> $ notmuch count 'thread:{date:1month..now tag:dkg}'
the t.f.p. receives the string "{date:1month..now"
(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:"{date:1month..now tag:dkg}"'
The t.f.p. receives the string "{date:1month..now tag:dkg}" (without
quotes). It notes the first and last character, and triggers a subquery
expansion.
The thing to keep in mind is that we have no control over the top level
"tokenization" by Xapian, except for using "".
prev parent reply other threads:[~2018-05-12 14:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-05 16:05 Thread subqueries David Bremner
2018-05-05 16:05 ` [PATCH 1/4] lib: add thread subqueries David Bremner
2018-05-06 17:59 ` Jani Nikula
2018-05-05 16:05 ` [PATCH 2/4] perf-test: add simple test for " David Bremner
2018-05-05 16:05 ` [PATCH 3/4] lib: define specialized get_thread_id for use in thread subquery David Bremner
2018-05-06 18:03 ` Jani Nikula
2018-05-05 16:05 ` [PATCH 4/4] doc: document thread subqueries David Bremner
2018-05-06 18:05 ` Jani Nikula
2018-05-07 12:09 ` Thread subqueries David Bremner
2018-05-07 12:39 ` Gaute Hope
2018-05-11 8:43 ` Daniel Kahn Gillmor
2018-05-11 10:15 ` David Bremner
2018-05-11 15:41 ` Daniel Kahn Gillmor
2018-05-12 13:24 ` Tomi Ollila
2018-05-12 14:01 ` David Bremner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fu2x6kii.fsf@tethera.net \
--to=david@tethera.net \
--cc=dkg@fifthhorseman.net \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).