diff options
| author | David Bremner <david@tethera.net> | 2017-02-15 08:58:28 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-05-09 07:44:15 -0300 |
| commit | eab365c742f86b52729ec2a5acaba1a798f94661 (patch) | |
| tree | 4b01c9b852d8c27fef20a92728496f3b132c0954 /lib/regexp-fields.h | |
| parent | 77c9ec1fddcbe145facfc3d65eee55b11ad61fb9 (diff) | |
lib: Add regexp searching for mid: prefix
The bulk of the change is passing in the field options to the regexp
field processor, so that we can properly handle the
fallback (non-regexp case).
Diffstat (limited to 'lib/regexp-fields.h')
| -rw-r--r-- | lib/regexp-fields.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/regexp-fields.h b/lib/regexp-fields.h index a4ba7ad8..d5f93445 100644 --- a/lib/regexp-fields.h +++ b/lib/regexp-fields.h @@ -65,11 +65,13 @@ class RegexpFieldProcessor : public Xapian::FieldProcessor { protected: Xapian::valueno slot; std::string term_prefix; + notmuch_field_flag_t options; Xapian::QueryParser &parser; notmuch_database_t *notmuch; public: - RegexpFieldProcessor (std::string prefix, Xapian::QueryParser &parser_, notmuch_database_t *notmuch_); + RegexpFieldProcessor (std::string prefix, notmuch_field_flag_t options, + Xapian::QueryParser &parser_, notmuch_database_t *notmuch_); ~RegexpFieldProcessor () { }; |
