Re: Date Indexing

2005-11-17 Thread Erik Hatcher
To java-user@lucene.apache.org 11/17/2005 07:00 cc AM Subject

Re: Date Indexing

2005-11-17 Thread Erik Hatcher
Oh, and sorry to miss the sorting question. Lucene can sort search results by String or numeric values. Field.Keyword(String,Date) can only be sorted as a String though. If you truly want to index and sort dates but don't need hours, minutes, seconds, milliseconds, then index them as YYY

Re: Date Indexing

2005-11-17 Thread Daniel . Clark
11/17/2005 07:00 cc AM Subject Re: Date Indexing

Re: Date Indexing

2005-11-17 Thread Erik Hatcher
On 17 Nov 2005, at 05:43, [EMAIL PROTECTED] wrote: I indexed dates using Field.Keyword(String,Date). The values seem to be encoded when I retrieve them via document.get("date"). Luke confirmed it. How do I decode the Date when retrieving from Document object? Or does it not work in vers

Date Indexing

2005-11-17 Thread Daniel . Clark
I indexed dates using Field.Keyword(String,Date). The values seem to be encoded when I retrieve them via document.get("date"). Luke confirmed it. How do I decode the Date when retrieving from Document object? Or does it not work in version 1.4.3? Also, does Lucene only sort String values? ~~~