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.
> 

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to