You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/12/04 09:08:35 UTC

[Lucene-java Wiki] Update of "DateRangeQueries" by PaulElschot

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 TrieRangeQuery

------------------------------------------------------------------------------
  
  A similar scheme can be used for general numerical range searching. This trades off index size for search performance.
  
+ A generalization of this is available in TrieRangeQuery in contrib/queries as from 2.4 dev. This works by mapping values to be indexed to a 64 bit long value, and by indexing various length prefixes of these 64 bit values. Order preserving mappings for dates and floating points are available.
+ 
  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.