searching: '*analysis' vs 'reanalysis'
Austin Clements
aclements at csail.mit.edu
Mon Jun 6 13:22:15 PDT 2016
Quoth Gaute Hope on Jun 06 at 8:08 pm:
> Austin Clements writes on juni 6, 2016 21:20:
> >
> >The experiment was specifically for regexp matching subject, but it should
> >work for any header we store a literal copy of in the database.
>
> Does it work for terms in the body of the message?
No. It's not impossible that it could be made to work, but it might be
slow and unintuitive. It would have to iterate over all of the terms
in the database and see which ones match the regexp. These are
available, but I don't know how much time it takes to iterate over all
of them. It might be okay. It might not.
It could also expand to a very large query if the regexp matches many
terms, akin to how searching for "a*" can be quite expensive.
And it might not match what you expect. It could only match individual
terms, so a regexp containing any punctuation (including but not
limited to a space) simply wouldn't match anything.
More information about the notmuch
mailing list