Date: 2004-11-24T14:46:32 Editor: HossMan <[EMAIL PROTECTED]> 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/[EMAIL PROTECTED]&by=thread&from=943115 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]