lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Date Fields
Date Tue, 29 Jun 2010 09:03:29 GMT
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
View raw message