aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/database-private.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-23 16:58:35 +0100
committerGravatar Carl Worth <cworth@cworth.org>2009-11-23 17:17:08 +0100
commit793cbf80495b8230e0b4de6ac609e2ca88b7dd4b (patch)
tree0847466d390d9ebf5ec63cc5a0c638a096de40d9 /lib/database-private.h
parenta378dff8a1b9136c3a2472dc6a88911ca3fa41b4 (diff)
Add rudimentary date-based search.
The rudimentary aspect here is that the date ranges are specified with UNIX timestamp values (number of seconds since 1970-01-01 UTC). One thing that can help here is using the date program to determins timestamps, such as: $(date +%s -d 2009-10-01)..$(date +%s) Long-term, we'll probably need to do our own query parsing to be able to support directly-specified dates and also relative expressions like "since:'2 months ago'".
Diffstat (limited to 'lib/database-private.h')
-rw-r--r--lib/database-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h
index 5f178f3e..431966fb 100644
--- a/lib/database-private.h
+++ b/lib/database-private.h
@@ -32,6 +32,7 @@ struct _notmuch_database {
Xapian::Database *xapian_db;
Xapian::QueryParser *query_parser;
Xapian::TermGenerator *term_gen;
+ Xapian::ValueRangeProcessor *value_range_processor;
};
#endif