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] Updated: DateRangeQueries
Date Wed, 24 Nov 2004 22:46:32 GMT
   Date: 2004-11-24T14:46:32
   Editor: HossMan <hossman_lucene@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


Mime
View raw message