[pylucene-dev] Need to build a high-load searcher
Pete
pfein at pobox.com
Fri Mar 23 13:00:15 PST 2007
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 || pfein at pobox.com
http://www.pobox.com/~pfein/ || PGP: 0xCCF6AE6B
irc: pfein at freenode.net || jabber: peter.fein at gmail.com
More information about the pylucene-dev
mailing list