[pylucene-dev] Need to build a high-load searcher

Ninneman, TJ tj at twopeasinabucket.com
Fri Mar 23 15:44:15 PST 2007


Absolutely.  You can (and should) share your IndexSearcher instance
among threads.  You'll lose the overhead of instantiating that object
and gain filter cacheing to boot.

TJ

On Fri, 2007-03-23 at 18:38 -0500, Pete wrote:
> On Friday March 23 2007 4:11 pm, Ofer Nave wrote:
> > Does that mean I either have to:
> > A) not use queryparser
> > B) not use threads
> 
> No, just don't share QueryParsers among threads.
> 
> threading.local may  be helpful here.
> 



More information about the pylucene-dev mailing list