On Mon, 29 May 2006, Alf Eaton wrote:

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: [EMAIL PROTECTED]>))

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

It's a bug. Add an 's' to parseArg line 13002 in lucene.cpp so that it reads:
    if (!parseArgs(args, "SP",

I checked the fix into the trunk.

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

Reply via email to