[PATCH RFC] index: add body: search query term

William Casarin jb55 at jb55.com
Wed Oct 10 09:34:26 PDT 2018


David Bremner <david at tethera.net> writes:

> William Casarin <jb55 at 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


More information about the notmuch mailing list