lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Hadianto <vict...@nuix.com.au>
Subject Re: Getting back a Date object?
Date Fri, 11 Jul 2003 00:45:21 GMT
On Fri, 11 Jul 2003 04:38 am, Wilton, Reece wrote:
> There is a Field.Keyword factory method that takes a date.  I'm using it
> like this:
>
>   searchDoc.add(Field.Keyword("TIMESTAMP", new Date()));

> The only thing I can see is getting a String or a Field from Hits.  And
> Field only allows you to get a String from it.  Should I be using the
> readerValue() for this?

Convert the string that you get using DateString.stringToDate(String s) 
method. 

HTH,
victor



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message