From: William Casarin <jb55@jb55.com>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH RFC] index: add body: search query term
Date: Wed, 10 Oct 2018 09:34:26 -0700 [thread overview]
Message-ID: <87pnwh2225.fsf@jb55.com> (raw)
In-Reply-To: <87in2arsjk.fsf@tethera.net>
David Bremner <david@tethera.net> writes:
> William Casarin <jb55@jb55.com> writes:
> I think you'll find you broke non-prefixed queries. Does the test suite
> still pass? If so, we need more tests.
yeah they seem to pass. but you're right, something seems a bit off:
./notmuch count subject:github or body:github and tag:notmuch
3271
./notmuch count github and tag:notmuch
665
> of terms I'd be intersted how much this bloats the index. Ideally with
> the performance corpus so we can all reproduce the experiment.
sounds good, I was wondering that as well.
I wonder if it's all worth the effort though, since a workaround could
be:
notmuch search <query> and not subject:<query>
If it's too annoying to have a body prefix, due to index bloat or
performance issues, would doing something hacky such as translating
'body:<query>' to '<query> and not subject:<query>' make sense?
Will
--
https://jb55.com
next prev parent reply other threads:[~2018-10-10 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-10 5:53 [PATCH RFC] index: add body: search query term William Casarin
2018-10-10 10:43 ` David Bremner
2018-10-10 16:34 ` William Casarin [this message]
2018-10-10 16:36 ` William Casarin
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=87pnwh2225.fsf@jb55.com \
--to=jb55@jb55.com \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/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).