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 <yogeshpateldai...@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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org