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/queryParser/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
