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:

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

Compile JCC

You may skip this step, if you already have a working JCC installation. # install required packages:

aptitude install sun-java5-jdk g++ java-gcj-compat-dev python-dev

# fix the pre-settings in jcc/setup.py - a little bit dirty, but it works (alternative: fix the INCLUDE, CFLAGS and LFLAGS for linux in jcc/setup.py):

ln -s java-1.5.0-sun /usr/lib/jvm/java-6-sun

# compile JCC:

cd jcc
python setup.py build

Creative Commons Lizenzvertrag
This page is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.