You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by haipeng du <ha...@gmail.com> on 2005/09/20 16:39:54 UTC

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 
Field field = Field.Keyword("created", new Date);
.....
......
When I search that, I get that field back
Field f = doc.getField("created").
but value of that field is just like 
0edtel52h
How could I process that to get Date object back?
Thanks a lot. 

-- 
Haipeng Du
Software Engineer
Comphealth, 
Salt Lake City