lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liat oren <oren.l...@gmail.com>
Subject Re: Date Fields
Date Tue, 29 Jun 2010 09:52:19 GMT
I was afraid this would be the answer..
Thanks a lot!
Liat

On 29 June 2010 12:03, Ian Lea <ian.lea@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.liat@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message