InhaltTableOfContents |
What is it about?
[http://pylucene.osafoundation.org/ PyLucene] is a [http://python.org/ python] interface for the [http://lucene.apache.org/ Lucene] indexing engine.
Indexing engines are used to parse data and store the content in way that is optimized for searching through it.
Another popular indexing engine is [http://xapian.org Xapian], but since its installation in Debian is more than trivial, there is no need for a howto :).
Names and values
Variable |
Bedeutung |
Beispiel |
Preparation
Which version of Lucene?
Currently there are two different releases of PyLucene available:
to be built with [http://gcc.gnu.org/java/ GCJ] (the Java compiler from [http://gnu.org GNU]): for PyLucene v2.2 and below
to be built with [http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/README JCC] (an alternative implementation): for PyLucene v2.2 and higher
The developer of PyLucene dropped support for GCJ since version 2.3, thus it should be reasonable to use the JCC sources.
Installation
Get the source
download the source from the PyLucene download site: http://downloads.osafoundation.org/PyLucene/jcc/
unpack it in a directory of your choice (tar xzf ...)
- change into the source directory
Compile JCC
You may skip this step, if you already have a working JCC installation. # install required packages: