[Xapian-discuss] query within value range
Olly Betts
olly at survex.com
Tue Jun 19 18:45:23 BST 2007
On Tue, Jun 19, 2007 at 06:31:48PM +0100, Mark Clarkson wrote:
> On Tue, 2007-06-19 at 17:07 +0100, Richard Boulton wrote:
> > This could be addressed by stripping trailing zeros from the time value,
> > I suppose. But I'm not completely confident that this makes sense.
>
> It looks like that actually works:
> [snip example which made we realise what was being suggested!]
It'll treat <something>..20070619000001 as including anything dated
2007/06/19 (with no time), which is perhaps too generous, but it's hard
to say what the "correct" behaviour is in this case.
However, 20070619000001..<something> won't include anything dated
2007/06/19 (with no time), which is inconsistent - that's a problem
I think. Range start and end need to be treated differently if this
is going to work, but I don't see how we can change 20070619000001
without making it sort differently compared to other date-times.
So perhaps a DateTimeValueRangeProcessor is the answer (or a mode on
the existing class, but that would break ABI compatibility I think).
Cheers,
Olly
More information about the Xapian-discuss
mailing list