Hi,

Use NumericField and NumericRangeQuery to query. For sorting use the
corresponding datatype. In the numeric field you would parse the date to a
number (e.g. milliseconds since epoch) and index it using NumericField. To
print them, use SimpleDateFormat or whatever to convert the numeric value
back to a date after you got the results.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]


> -----Original Message-----
> From: sam [mailto:[email protected]]
> Sent: Wednesday, July 11, 2012 10:32 AM
> To: [email protected]
> Subject: about some date store
> 
> I want store some data like 00:00:00.123,it's string,i want print it as
date
> .because i want sort it as date's increase.
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/about-
> some-date-store-tp3994330.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to