: yyyymmdd so that it can be sorted.  having done that, however, I am
: unsure how to ask Lucene to sort on that date, but I'll figure it out
: in time or someone will tell me.

you don't need to wait ... it's already been explained in this thread,
look at the Sort class and the methods in IdexSearcher which take Sort
objects.

:
: On Aug 29, 2006, at 3:54 PM, Mag Gam wrote:
:
: > "Index the date". Do you mean, index date, or the document date?
: >
: > Could this be in a LIA book?
: >
: >
: >
: > On 8/29/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
: >>
: >>
: >> On Aug 29, 2006, at 11:50 AM, Mag Gam wrote:
: >> > Is it possible to sort results by date of the document?
: >>
: >> Sure, check out the Sort class and the overloaded IndexSearcher.search
: >> () methods that take a Sort.  You will need to index the date in a
: >> sortable way. DateTools provides handy methods for this purpose.
: >>
: >>        Erik
: >>
: >>
: >> ---------------------------------------------------------------------
: >> To unsubscribe, e-mail: [EMAIL PROTECTED]
: >> For additional commands, e-mail: [EMAIL PROTECTED]
: >>
: >>
:
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: [EMAIL PROTECTED]
: For additional commands, e-mail: [EMAIL PROTECTED]
:



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to