Edgarest currently uses a search engine written from scratch, but I've been playing around with Lucene and specifically with PyLucene. Edgarest uses a bare installation of Debian Etch, so it took a little work to get it up and running. Here are the steps, starting from the base Debian Etch net install:
sudo apt-get update
sudo apt-get install build-essential sun-java6-jdk ant subversion python-dev
sudo update-java-alternatives --set java-6-sun
wget http://downloads.osafoundation.org/PyLucene/jcc/PyLucene-2.4.0-1-src-jcc.tar.gz tar -xzvf PyLucene-2.4.0-1-src-jcc.tar.gz(note, you need to make sure your java version matches the setup.py files)
cd PyLucene-2.4.0-1
python setup.py build
sudo python setup.py install
cd ..
make
sudo make install
You probably want to remove the backports line from your /etc/apt/sources.list since if you don't you'll get newer packages by default, when that might not be what you want for stability reasons.