You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Matt Quail <ma...@ctx.com.au> on 2004/02/28 08:26:23 UTC

donation: LongField.java

I've attached a class LongField.java, which is like DateField, but can 
handle any long value (DateField is limited to 0<=d<=31536000000000).

I've also attached a unit test for it. I am happy to donate this to 
Jakarta if you want it.

Motivation: I needed to index "reversed" dates, which ment -ve longs 
(see "Iterating TermEnum backwards" in lucene-user).

=Matt