[pylucene-dev] MultiFieldQueryParser in 2.0.0

Andi Vajda vajda at osafoundation.org
Mon May 29 10:02:47 PDT 2006


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: 
> org.apache.lucene.analysis.standard.StandardAnalyzer at 2fa31245>))
>
> 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..


More information about the pylucene-dev mailing list