lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: sort ordering
Date Thu, 05 Oct 2006 13:12:34 GMT
Search the mail archives for "date" and "sort" and you'll get many, many
responses. The short form is look at the DateTools class, and also look at
the Sort class.

Be aware that there are several issues regarding *ranges* of dates if you
have a need to search over, say, "all dates from 20060101 to 20061010" for
instance. You want to be mindful of the resolution of your dates.

But, as I said, you'll get lots and lots of information if you search the
list archive. There's also explications of this in Lucene In Action.


On 10/5/06, Amit Soni <> wrote:
> Hi all,
> I have been using Lucene from last few days. Right now i am reading some
> records from the db then convert in Document of lucene and then adds
> that document in lucene index. But in my record i have one field which
> is created_date and i want to search for given query in created_date
> order. So is it possible to search in date order. If any one of you have
> some idea regarding this then please let me know.
> Thanks,
> Amit Soni
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message