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 Thu, 04 Dec 2008 08:08:35 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 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.
  

Mime
View raw message