lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Date Format to index in lucene
Date Thu, 02 Dec 2010 11:44:57 GMT
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: uwe@thetaphi.de

> -----Original Message-----
> From: Romi [mailto:romijain3186@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.


Mime
View raw message