On Sep 20, 2005, at 12:55 PM, haipeng du wrote:
I understand that. But from Field API, there is a method of Keyword which accepts Date object as value. When I use that method to index, I can not get real date back. I also use other method to pass a string value to index. That works great. Does that mean I can not use that method to index keyword?
Thanks a lot.

Have a look at DateField.stringToDate:

<http://lucene.apache.org/java/docs/api/org/apache/lucene/ document/DateField.html#stringToDate(java.lang.String)>

Please also check the wiki, Lucene in Action, and the e-mail list archives if you are searching by date. Lots of caveats apply.

    Erik


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

Reply via email to