You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by lu...@jakarta.apache.org on 2004/11/24 23:46:32 UTC

[Jakarta Lucene Wiki] Updated: DateRangeQueries

   Date: 2004-11-24T14:46:32
   Editor: HossMan <ho...@fucit.org>
   Wiki: Jakarta Lucene Wiki
   Page: DateRangeQueries
   URL: http://wiki.apache.org/jakarta-lucene/DateRangeQueries

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -20,3 +20,8 @@
   ||1906||6||
              
   Erik Hatcher also wrote([http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg07016.html 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.
+
+  http://nagoya.apache.org/eyebrowse/BrowseList?listName=lucene-user@jakarta.apache.org&by=thread&from=943115

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org