[PATCH] TODO: date range queries - check
Jani Nikula
jani at nikula.org
Sat Dec 8 14:32:18 PST 2012
On Sat, 08 Dec 2012, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> On Sat, Dec 08 2012, David Bremner <david at tethera.net> wrote:
>> Patch? Concrete wording suggestion?
>
> How about:
>
> It would be nice to not require both endpoints to be specified in date
> searches. For example it would be nice to be able to say things like
> "date:2009-01-1", to specify a search over a particular day, or
> "since:'1 month' to specify an open-ended range, and have the other
> endpoint be implicit. To do any of this we're probably going to need to
> break down an write our own parser for the query string rather than
> using Xapian's QueryParser class.
FWIW, this means, in practice:
Make date:<expr> an alias for date:<expr>..<expr>
Make since:<expr> an alias for date:<expr>..
Make until:<expr> an alias for date:..<expr>
We'll either need to write our own query parser or some new features to
upstream Xapian to do any of these.
BR,
Jani.
More information about the notmuch
mailing list