If you want full precision, index it as UNIX epoch timestamp as returned by Date#getTime() as a LONG. This is also used by Apache Solr.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Romi [mailto:romijain3...@gmail.com] > Sent: Thursday, December 02, 2010 12:07 PM > To: general@lucene.apache.org > Subject: Date Format to index in lucene > > > Hi, > I am using lucene to search date ranges. I want to know how should I take > date to index it. When I want to index it in all resolution ie. > Year,Month,Day,Hour,Minute,second,Millisecond > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Date- > Format-to-index-in-lucene-tp2005302p2005302.html > Sent from the Lucene - General mailing list archive at Nabble.com.