lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: "Greater than" equivalent?
Date Mon, 25 Sep 2006 16:25:48 GMT
I think you could use a range (either a RangeQuery or RangeFilter).  So your
range (from your example) would be between 125688 and 1000000000 or some

Be careful of a RangeQuery throwing TooManyClauses if your range contains
more than 1024 (default) distinct entries, which means I'd recommend using
the RangeFilter is your first option.....


On 9/25/06, Michael J. Prichard <> wrote:
> I have a filtering process that checks my index for various things.  I
> have an "itemid" field in this index and I keep track of the last itemid
> I search up to.  I was wondering if there was an equivalent to doing a
> search with a "greater than" clause?  Sort of like:
> AND subject:happy AND itemid: >125688
> -Michael
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message