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

Ofer Nave ofer at smarter.com
Fri Mar 23 13:11:30 PST 2007


Does that mean I either have to:
A) not use queryparser
B) not use threads
?

-ofer 

> -----Original Message-----
> From: pylucene-dev-bounces at osafoundation.org 
> [mailto:pylucene-dev-bounces at osafoundation.org] On Behalf Of Pete
> Sent: Friday, March 23, 2007 2:00 PM
> To: pylucene-dev at osafoundation.org
> Subject: Re: [pylucene-dev] Need to build a high-load searcher
> 
> On Friday March 23 2007 3:03 pm, Ofer Nave wrote:
> > It 
> <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731>  
> > works fine when run the Searcher a normal process, but when 
> I run the 
> > Searcher as a daemon, it freezes after about a dozen 
> queries, in the 
> > middle of the
> > queryparser.parse() call.  It never gets past that point.  I wrote a
> 
> QueryParser isn't threadsafe, per lucene javadocs.  IIRC you 
> can create one in thread A & use it in thread B, but you 
> can't use them concurrently. 
> http://lucene.apache.org/java/docs/api/org/apache/lucene/query
> Parser/QueryParser.html
> 
> -- 
> Peter Fein   ||   773-575-0694   ||   pfein at pobox.com
> http://www.pobox.com/~pfein/   ||   PGP: 0xCCF6AE6B
> irc: pfein at freenode.net   ||   jabber: peter.fein at gmail.com
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev



More information about the pylucene-dev mailing list