[pylucene-dev] MultiFieldQueryParser in 2.0.0

Alf Eaton lists at hubmed.org
Mon May 29 09:45:55 PDT 2006


In PyLucene 1.9.1, it was possible to invoke a MultiFieldQueryParser using:

fields = ["field1", "field2"]
qp = MultiFieldQueryParser(fields, StandardAnalyzer())

but in 2.0.0 that doesn't seem to work:

PyLucene.InvalidArgsError: (<type 'PyLucene.MultiFieldQueryParser'>, 
'__init__', (['field1', 'field2'], <StandardAnalyzer: 
org.apache.lucene.analysis.standard.StandardAnalyzer at 2fa31245>))

Is there a different way to do this now, or is it a bug?

alf.


More information about the pylucene-dev mailing list