* mu-query: special-case 'now' and 'today' when used as start of range
This commit is contained in:
@ -45,6 +45,11 @@ public:
|
|||||||
|
|
||||||
if (!clear_prefix (begin))
|
if (!clear_prefix (begin))
|
||||||
return Xapian::BAD_VALUENO;
|
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 (begin);
|
||||||
substitute_date (end);
|
substitute_date (end);
|
||||||
|
|||||||
Reference in New Issue
Block a user