Re: date keyword

2005-09-20 Thread Erik Hatcher
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. D

Re: date keyword

2005-09-20 Thread haipeng du
dated to a searchable strings > > Aviran > http://www.aviransplace.com > > -Original Message- > From: haipeng du [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 20, 2005 10:40 AM > To: lucene-dev@jakarta.apache.org; lucene-user@jakarta.apache.org > Subject: da

RE: date keyword

2005-09-20 Thread Mordo, Aviran (EXP N-NANNATEK)
PROTECTED] Sent: Tuesday, September 20, 2005 10:40 AM To: lucene-dev@jakarta.apache.org; lucene-user@jakarta.apache.org Subject: date keyword I use lucene to index a key word with date object. When I search document, how could I process the searching result for that field? For example: index date with

date keyword

2005-09-20 Thread haipeng du
I use lucene to index a key word with date object. When I search document, how could I process the searching result for that field? For example: index date with Field field = Field.Keyword("created", new Date); . .. When I search that, I get that field back Field f = doc.getField("created