lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
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:

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

+ == 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:
+ 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
+ A search with CCYYMMDDmmss accuracy would then need a BooleanQuery with required clauses
for the CCYYMMDD and mmss parts.

View raw message