lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: date keyword
Date Tue, 20 Sep 2005 17:08:47 GMT

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message