lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@anyware-tech.com>
Subject Re: how to define a pool for Searcher?
Date Mon, 26 Feb 2007 19:58:07 GMT
Le lundi 26 février 2007 20:12, Chris Lu a écrit :
> 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.

ok, I have found what I missed. I looked to the code in SegmentReader, and 
there are some synchronized functions. So the performance improve you are 
talking about. Too bad because it only comes from the possibility to delete 
document, which seems useless for the read-only-index use case.

Nicolas

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message