Re: [PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-04-17 Thread David Bremner
David Bremner writes: > The new `body:` field (in Xapian terms) or prefix (in slightly > sloppier notmuch) terms allows matching terms that occur only in the > body. as promised / threatened, pushed to master. d ___ notmuch mailing list notmuch@notmuc

Re: [PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-04-14 Thread David Bremner
David Bremner writes: > The new `body:` field (in Xapian terms) or prefix (in slightly > sloppier notmuch) terms allows matching terms that occur only in the > body. > > Unprefixed query terms should continue to match anywhere (header or > body) in the message. Last call for review. I'll push th

Re: [PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-03-29 Thread David Bremner
David Bremner writes: > This follows a suggestion of Olly Betts to use the facility (since > Xapian 1.0.4) to add the same field with multiple prefixes. The double > indexing of previous versions is thus replaced with a query time > expension of unprefixed query terms to the various prefixed > eq

[PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-03-18 Thread David Bremner
The new `body:` field (in Xapian terms) or prefix (in slightly sloppier notmuch) terms allows matching terms that occur only in the body. Unprefixed query terms should continue to match anywhere (header or body) in the message. This follows a suggestion of Olly Betts to use the facility (since Xa

[PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-03-13 Thread David Bremner
The new `body:` field (in Xapian terms) or prefix (in slightly sloppier notmuch) terms allows matching terms that occur only in the body. Unprefixed query terms should continue to match anywhere (header or body) in the message. This follows a suggestion of Olly Betts to use the facility (since Xa

Re: [PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-03-04 Thread Matt Armstrong
David, interesting idea. I'm not very familiar with this code or its conventions so my feedback should be taken with that in mind. More below. David Bremner writes: > diff --git a/lib/database.cc b/lib/database.cc > index 9cf8062c..27c2d042 100644 > --- a/lib/database.cc > +++ b/lib/database.

[PATCH] lib: add 'body:' field, stop indexing headers twice.

2019-03-03 Thread David Bremner
The new `body:` field (in Xapian terms) or prefix (in slightly sloppier notmuch) terms allows matching terms that occur only in the body. Unprefixed query terms should continue to match anywhere (header or body) in the message. This follows a suggestion of Olly Betts to use the facility (since Xa