You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Eran Sevi <er...@gmail.com> on 2008/03/11 17:29:21 UTC
Query for "Bigger then" specific term
Hi,
What's the best way to query Lucene for a "bigger then" term, for example "
value > 10".
I know there's a range query where I can use a large upper bound but maybe
there's something more efficient (instead of Lucene transfrom to query to
thousands of OR queries).
Thanks,
Eran.
Re: Query for "Bigger then" specific term
Posted by Chris Hostetter <ho...@fucit.org>.
: I know there's a range query where I can use a large upper bound but maybe
: there's something more efficient (instead of Lucene transfrom to query to
: thousands of OR queries).
If you use ConstantScoreRangeQuery then there is no transformation per
term - just a uniform score if hte document contains a value in the range
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org