Re: Getting Dates Back out of lucene

2005-12-06 Thread Alan Chandler
On Tuesday 06 Dec 2005 10:10, Miles Barr wrote: > On Tue, 2005-12-06 at 09:35 +, Alan Chandler wrote: > > I added a date field to a document with > > > > doc.add(Field.keyword("A Date",myDate)); > > > > How do I get it back out again as a date? > > You should be able to use the > org.apache.luc

Re: Getting Dates Back out of lucene

2005-12-06 Thread Miles Barr
On Tue, 2005-12-06 at 09:35 +, Alan Chandler wrote: > I added a date field to a document with > > doc.add(Field.keyword("A Date",myDate)); > > How do I get it back out again as a date? You should be able to use the org.apache.lucene.document.DateField#stringToDate(String) method. Miles

Getting Dates Back out of lucene

2005-12-06 Thread Alan Chandler
I added a date field to a document with doc.add(Field.keyword("A Date",myDate)); How do I get it back out again as a date? -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. --