[pylucene-dev] Newcomer

Andi Vajda vajda at osafoundation.org
Fri Nov 9 10:58:38 PST 2007


On Fri, 9 Nov 2007, João Rodrigues wrote:

> I'm trying to do a rather simple task: index a list of files in a local
> directory and then search on that index. I've looked at the
> BaseIndexingTestCase.py and I've come up with this code:

PyLucene comes in two flavors, jcc and gcj. If you have both of their sources 
trees installed together, there are two samples directories, one for each 
flavor. The newer (and recommended) PyLucene flavor is the one built with JCC.

For examples on more or less exactly what you're asking for see [1]:
   PyLucene/jcc/samples/IndexFiles.py and PyLucene/jcc/samples/SearchFiles.py

The entire "Lucene in Action" book samples are available in python too [2].
Since PyLucene reflects pretty accurately the Java Lucene API, there are no 
specific API docs for it. Only differences and additions are covered. To get 
API docs on Lucene see [3]. This goes for inquiries like your as well: for 
regular Lucene usage questions, the java-users at lucene.apache.org mailing list 
is best. To get docs on PyLucene proper see [4], [5] and [6]

Andi..

[1] http://svn.osafoundation.org/pylucene/trunk/jcc/samples/
[2] http://svn.osafoundation.org/pylucene/trunk/jcc/samples/LuceneInAction/
[3] http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/index.html
[4] http://svn.osafoundation.org/pylucene/trunk/README
[5] http://svn.osafoundation.org/pylucene/trunk/jcc/README
[6] http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/README


More information about the pylucene-dev mailing list