lucene-java-user mailing list archives

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

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 -


Send instant messages to your online friends 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message