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 Yogesh patel <yo...@gmail.com> on 2011/09/25 08:51:59 UTC
Regarding Lucene Query
Respected,
Hello, I am using lucene with my java application. I am having one
confusion. I want to paginate my search and want 20-30 results and total
results are 100000. So When i query in application, it gives me heap space
error. So can we fire lucene query so we can only get 20-30 results from it.
Awaiting for your positive reply.
Thanks
Re: Regarding Lucene Query
Posted by Erick Erickson <er...@gmail.com>.
Can we see the code you change when you get this error?
The easiest thing to do is to increase the memory given the JVM
with -Xmx.
How big are the documents? Are you saying you're returning 100,000
docs at once? If so, the -Xmx should be all you need.
Best
Erick
On Sat, Sep 24, 2011 at 11:51 PM, Yogesh patel
<yo...@gmail.com> wrote:
> Respected,
>
> Hello, I am using lucene with my java application. I am having one
> confusion. I want to paginate my search and want 20-30 results and total
> results are 100000. So When i query in application, it gives me heap space
> error. So can we fire lucene query so we can only get 20-30 results from it.
>
> Awaiting for your positive reply.
> Thanks
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org