[pylucene-dev] Re: PyLucene-JCC on OS X 10.5 (Intel Mac Pro)
vajda at osafoundation.org
Mon Nov 12 18:42:47 PST 2007
On Mon, 12 Nov 2007, Bill Janssen wrote:
> My existing gcj-PyLucene code extends QueryParser. It looks like to
> do this with JCC-PyLucene, I'll need to write one of these Java
> extension classes, right? Or are there some standard extensors
> included? The sample in CustomQueryParser.py just imports
> lucene.PythonQueryParser, which I'm guess is a standard extensor for
The basic difference between extensions in the old PyLucene and new PyLucene
is that you are now indeed extending a class. See  about this.
As, for example, in  line 439, the _analyzer class extends PythonAnalyzer.
There are many examples in the LuceneInAction samples as well as some in the
unit tests. CustomQueryParser.py is exactly what you're looking for.
More information about the pylucene-dev