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 Date Fields
Date Tue, 29 Jun 2010 07:32:24 GMT
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

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