lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lu" <>
Subject Re: how to define a pool for Searcher?
Date Mon, 26 Feb 2007 19:12:52 GMT
Hi, Nicolas,

Just a note: Having one searcher is far enough for ordinary usage,
even some production sites. But I do see some throughput gain through
increasing the number of searchers.

Those searchers should either be opened on an static index, or be
synchronized to open/close cleanly, to avoid any exceptions.

Chris Lu
Instant Full-Text Search On Any Database/Application

On 2/26/07, Nicolas Lalevée <> wrote:
> Le lundi 26 février 2007 12:38, Mohammad Norouzi a écrit:
> > No. actually I dont close the searcher. I just set a flag to true or false.
> > my considerations are:
> > [please note I provided a ResultSet so I display the result page by page
> > and dont load all the result in a list]
> > 1- should I open a searcher for each user? and one reader for all user
> > session?
> > 2- or create a pool of searcher and one reader for all searcher?
> > 3- or a pool of searcher and each has its own reader. but never close them
> > just set a flag to true.
> >
> > which one?
> I probably miss something here, because I will continue answer the same : have
> only one instance of an index searcher in your entire web application.
> Nicolas
> >

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

View raw message