I was afraid this would be the answer.. Thanks a lot! Liat On 29 June 2010 12:03, Ian Lea <ian....@gmail.com> wrote:
> How are you searching? If looking for exact dates I guess you could > make it work by passing in the exact value but ranges would be > challenging. > > My advice would be to upgrade to a current version of Lucene and > reindex everything with the date as a NumericField. > > > -- > Ian. > > > On Tue, Jun 29, 2010 at 8:32 AM, liat oren <oren.l...@gmail.com> wrote: > > Hi all, > > > > I made a mistake, finished indexing all my database (millions of > > documents..), regarding field dates as usual fields. > > Instead of doing: > > doc.add(Field.Keyword("indexDate", new Date()); > > I added it as: > > doc.add(new Field("indexDate", String.valueOf(new Date().toString()), > > Field.Store.YES, Field.Index.NOT_ANALYZED); > > > > What should I do in this case? > > Is there a way to do the manipulation in the search stage? > > Note that I use lucene 2.3.2. > > > > Thanks a lot, > > Liat > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >