Blueyben, What you describe is a general Java time conversion problem, not a Lucene related one.
You will need to do a search on "Java time format" which should bring you amongst other links to http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html. You might also be interested for time formatting to look into http://joda-time.sourceforge.net/. Andreas On 9/3/07, blueyben <[EMAIL PROTECTED]> wrote: > > > Dear all, I am new to Lucene, am trying with the basics. > > Basically I created sample text files with fields as follows: > > textid 17 > pubdate 63/01/04 > pageid 20 > > I have been trying to edit FileDocument.java to read the fields above and > > 1. Index "textid" with value "17" > 2. Index "pubdate" with value "19630104" > 3. Index "pageid" with "20" > > The pubdate field must be converted from the current format to the format > YYYYMMDD in order for a range search to be executed later. > > Can anyone advise me how I can do this? > > Thank you so much. > -- > View this message in context: > http://www.nabble.com/FileDocument---Confused-and-Need-Help.-tf4373049.html#a12464430 > 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] > >