lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Exception while doing sorting
Date Wed, 17 Sep 2008 14:20:09 GMT
<<<My index searcher is static object and it is getting refreshed every

Does this mean you close/open your searcher every minute? If so, this could
be the root of why your sorting is taking so long. Although it's not the OOM
problem, see Faud's email.

The first few searches on a newly opened searcher do a lot of setup, which
is very
expensive. A 50 second search is usually considered unacceptable, so you
want to revisit how often you open/close your searcher if, indeed, you are
doing it
every minute.


On Wed, Sep 17, 2008 at 8:46 AM, Ganesh - yahoo <>wrote:

> Hello all,
> I am have indexed more than 4 million documents. My query fetches 300,000
> hits. If i perform sorting on any field, then tomcat reports out of memory
> exception.
> Sometimes the query results may be around 1000, but sorting on any field
> might take more than 30 - 50 secs.
> I don't know what's going wrong.
> My index searcher is static object and it is getting refreshed every
> minute. JSP pages directly calls the index searcher object and performs
> search.
> Regards
> Ganesh
> Send instant messages to your online friends
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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