X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase-private.h;h=cf4eb94b0583a80c9c1ff432b243bccda83011b4;hb=5cb452c325e1f69e43dca610f48b9396cba9c039;hp=9706c17e68f9de13fd4377a4386592fe0894e2be;hpb=3df2281746d57abbb45790ecb432ef40533c30bc;p=notmuch diff --git a/lib/database-private.h b/lib/database-private.h index 9706c17e..cf4eb94b 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -232,6 +232,7 @@ struct _notmuch_database { */ unsigned long view; Xapian::QueryParser *query_parser; + Xapian::Stem *stemmer; Xapian::TermGenerator *term_gen; Xapian::RangeProcessor *value_range_processor; Xapian::RangeProcessor *date_range_processor; @@ -300,4 +301,16 @@ _notmuch_database_setup_standard_query_fields (notmuch_database_t *notmuch); notmuch_status_t _notmuch_database_setup_user_query_fields (notmuch_database_t *notmuch); +#if __cplusplus +/* parse-sexp.cc */ +notmuch_status_t +_notmuch_sexp_string_to_xapian_query (notmuch_database_t *notmuch, const char *querystr, + Xapian::Query &output); + +notmuch_status_t +_notmuch_regexp_to_query (notmuch_database_t *notmuch, Xapian::valueno slot, std::string field, + std::string regexp_str, + Xapian::Query &output, std::string &msg); +#endif + #endif