On Tue, 13 Nov 2007, Bill Janssen wrote:

Try this:

 from lucene import initVM, CLASSPATH
 from lucene import QueryParser, StandardAnalyzer, PythonMultiFieldQueryParser

 initVM(classpath=CLASSPATH)

 class MyQueryParser (PythonMultiFieldQueryParser):

     pass

 p = MyQueryParser(['bletch', 'unbletch'], StandardAnalyzer())
 print QueryParser.parse(p, "foo AND bar")

Did you actually try this ?
It crashes for me. It's not reproducing the error you're reporting.
I'm trying to figure out why...

Andi..

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

Reply via email to