lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucene-...@jakarta.apache.org
Subject [Jakarta Lucene Wiki] New: IndexingDateFields
Date Tue, 27 Apr 2004 20:12:12 GMT
   Date: 2004-04-27T13:12:12
   Editor: ErikHatcher <ehatcher@apache.org>
   Wiki: Jakarta Lucene Wiki
   Page: IndexingDateFields
   URL: http://wiki.apache.org/jakarta-lucene/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: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message