diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-21 00:35:56 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-21 00:35:56 -0700 |
commit | 65baa4f4e7fc401e5af742b491a3bc0784f2cdf7 (patch) | |
tree | 97bfd13076c076431f779d7296f96b1df71e49f8 /database-private.h | |
parent | 6a3b68edeffa53c3e1c9aa156eff46c5999077c5 (diff) |
notmuch dump: Fix the sorting of results.
To properly support sorting in notmuch_query we know use an
Enquire object. We also throw in a QueryParser too, so we're
really close to being able to support arbitrary full-text
searches.
I took a look at the supported QueryParser syntax and chose
a set of flags for everything I like, (such as supporting
Boolean operators in either case ("AND" or "and"), supporting
phrase searching, supporting + and - to include/preclude terms,
and supporting a trailing * on any term as a wildcard).
Diffstat (limited to 'database-private.h')
-rw-r--r-- | database-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database-private.h b/database-private.h index b894717..a5cca5a 100644 --- a/database-private.h +++ b/database-private.h @@ -28,7 +28,7 @@ struct _notmuch_database { char *path; Xapian::WritableDatabase *xapian_db; - Xapian::TermGenerator *term_gen; + Xapian::QueryParser *query_parser; }; #endif |