Does that mean I either have to: A) not use queryparser B) not use threads ?
-ofer > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Pete > Sent: Friday, March 23, 2007 2:00 PM > To: [email protected] > 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 || [EMAIL PROTECTED] > http://www.pobox.com/~pfein/ || PGP: 0xCCF6AE6B > irc: [EMAIL PROTECTED] || jabber: [EMAIL PROTECTED] > _______________________________________________ > pylucene-dev mailing list > [email protected] > http://lists.osafoundation.org/mailman/listinfo/pylucene-dev _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
