On Sat, 08 Dec 2012, Jameson Graef Rollins <jrollins@finestructure.net> wrote: > On Sat, Dec 08 2012, David Bremner <david@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.