lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-java Wiki] Update of "DateRangeQueries" by PaulElschot
Date Tue, 11 Nov 2008 18:59:51 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.

The following page has been changed by PaulElschot:
http://wiki.apache.org/jakarta-lucene/DateRangeQueries

The comment on the change is:
Small correction and two examples for indexed hierarchical prefixes

------------------------------------------------------------------------------
  
  C CC CCY CCYY CCYYMM CCYYMMD CCYYMMDD
  
+ and use the fewest prefixes possible to search for a range. For example to search for every
date in the 1990's, search for 199. To search for the date range Jan 2007 up to and including
Jan 2008, search for (2007 OR 200801).
+ 
- and use the shortest prefixes possible to search for a range. A similar scheme can be used
for general numerical range searching. This trades off index size for search performance.
+ A similar scheme can be used for general numerical range searching. This trades off index
size for search performance.
  
  When longer dates or numbers need to be indexed, for example CCYYMMDDhhmmss with hours,
minutes and seconds added, consider indexing the hhmmss separately, possibly with hierarchical
prefixes themselves.
  A search with CCYYMMDDhhmmss accuracy would then need a BooleanQuery with required clauses
for the CCYYMMDD and hhmmss parts.

Mime
View raw message