* mu-query: special-case 'now' and 'today' when used as start of range

This commit is contained in:
Dirk-Jan C. Binnema 2011-05-22 10:26:20 +03:00
parent c23d6b4dc7
commit 000805ae1f
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ public:
if (!clear_prefix (begin))
return Xapian::BAD_VALUENO;
// now and begin should only appear at the end, so
// correct them...
if (begin == "today" || begin == "now")
std::swap (begin, end);
substitute_date (begin);
substitute_date (end);