lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadav Har'El" <>
Subject re :Range queries
Date Tue, 09 May 2006 13:13:49 GMT
"Kinnar Kumar Sen, Noida" <> wrote on 09/05/2006 12:57:16
>     When I am trying RANGE QUERY on my index it works fine for a  small
> index but when the index is large such as 0 - 1000000 it gives an
> exception
>   Boolean Clause Exception  I have set the 1024 value in boolean to
> integer.max but now  is giving a out of memory exception . Can some body
> suggest me a way out or a technique to effectively use range queries  I
> need to use this feature extensively for my application for ranges like
> 0 - 100000 ,

Use "ConstantScoreRangeQuery" instead of "RangeQuery". It is still very
inefficient, and you still need to remember to pad all your numbers so
they sort properly *lexicographically* (e.g., 000000-1000000), but at
least you should not have exceptions any more.

Nadav Har'El

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

View raw message