[pylucene-dev] Re: PyLucene-JCC on OS X 10.5 (Intel Mac Pro)

Andi Vajda 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
> QueryParser.

The basic difference between extensions in the old PyLucene and new PyLucene 
is that you are now indeed extending a class. See [1] about this.

As, for example, in [1] 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.

Andi..

[1] http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/README


More information about the pylucene-dev mailing list