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, 26 Feb 2008 22:26:11 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/lucene-java/DateRangeQueries

The comment on the change is:
Add using indexed hierarchical prefixes, and splitting off extra terms.

------------------------------------------------------------------------------
  
    http://nagoya.apache.org/eyebrowse/BrowseList?listName=lucene-user@jakarta.apache.org&by=thread&from=943115
  
+ == Using indexed hierarchical prefixes ==
+ 
+ When the above advice does not help enough, consider indexing a date CCYYMMDD as multiple
prefixes on the same index positions:
+ 
+ C CC CCY CCYY CCYYMM CCYYMMD CCYYMMDD
+ 
+ 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.
+ 
+ When longer dates or numbers need to be indexed, for example CCYYMMDDmmss with minutes and
seconds added, consider indexing the mmss separately, possibly with hierarchical prefixes
themselves.
+ A search with CCYYMMDDmmss accuracy would then need a BooleanQuery with required clauses
for the CCYYMMDD and mmss parts.
+ 

Mime
View raw message