lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Jakarta Lucene Wiki] Updated: DateRangeQueries
Date Wed, 24 Nov 2004 22:46:32 GMT
   Date: 2004-11-24T14:46:32
   Editor: HossMan <>
   Wiki: Jakarta Lucene Wiki
   Page: DateRangeQueries

   no comment

Change Log:

@@ -20,3 +20,8 @@
   Erik Hatcher also wrote([
message]): One more point... caching is done by the IndexReader used for the search, so you
will need to keep that instance (i.e. the IndexSearcher) around to benefit from the caching.
+ == Using a Filter Instead ==
+  In many cases (I would argue: all cases) it doesn't make sense to Query on a Range of Dates.
 More then likely what you really want to do is *Filter* on a Range of Dates.  Querying scores
items based on the frequency of terms -- which is something most people don't care about when
dealing with dates, particularly given the overhead involved.  Consider using a RangeFilter
(or possibly a RangeFilter wrapped in a FilteredQuery) instead.

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

View raw message