lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Jakarta Lucene Wiki] New: IndexingDateFields
Date Tue, 27 Apr 2004 20:12:12 GMT
   Date: 2004-04-27T13:12:12
   Editor: ErikHatcher <>
   Wiki: Jakarta Lucene Wiki
   Page: IndexingDateFields

   no comment

New Page:

If only year, month, day are relevant to your situation, index the text string "YYYYMMDD"
as Field.Keyword, rather than using DateField or Field.Keyword(String, Date).  Why?  Because
RangeQuery will expand into a BooleanQuery of all terms in the range, and DateField represents
down to the millisecond level and can expand into more terms than are allowed in a BooleanQuery.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message