lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
Subject RE: Range queries
Date Tue, 09 May 2006 10:36:44 GMT
Typically the 3 most important things to remember when
using numerical range queries are:

1) Use a filter instead.
2) Use a filter instead.
3) Use a filter instead.

Seriously, number rangeQueries are normally a bad idea
because:

a) they can produce "too many term" errors (your
current problem)
b) they influence results ranking in ways which are
undesirable (do we typically care how rare one number
in the range is versus another? - Lucene does when
scoring RangeQueries)
c) they are slower than filters

See here for examples of filter-based alternatives -
http://wiki.apache.org/jakarta-lucene/FilteringOptions


Cheers
Mark

Send instant messages to your online friends http://uk.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message