I've been looking at a conversion of a Java Lucene project to PyLucene, using PyLucene 1.9 on Python 2.3.5 on a Mac. So far, so good, but I don't see how to subclass MultiFieldQueryParser properly. I have to override both "parseQuery" and "getFieldQuery" (and probably "getRangeQuery") in my subclass.
If I define a new Python class that inherits from the Python MultiFieldQueryParser class, my override of "parseQuery" works, but "getFieldQuery" doesn't. If I use the analyzer.queryParser() trick illustrated in the examples, "getFieldQuery" gets called, but not "parseQuery". What's worse, there's only one default field name with that approach, so it won't really work. I tried combining the two approaches, but there are Java/Python type mismatches that occur. Any ideas? Bill _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
