"Kinnar Kumar Sen, Noida" <[EMAIL PROTECTED]> wrote on 09/05/2006 12:57:16
PM:
>     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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to