[pylucene-dev] HitCollector in PyLucene extremely slow

Andi Vajda vajda at osafoundation.org
Tue Sep 4 09:14:00 PDT 2007


On Mon, 3 Sep 2007, John Kleven wrote:

> I have a sinking feeling that writing this in Java and
> then writing the hooks for PyLucene is going to be my
> only solution.  I have attempted just compiling
> PyLucene from scratch in the past .... and have failed
> miserably.  Any new docs/info/wiki entries on
> compilation/hooks?

Nothing new, really. What OS are you on ?

If you're using gcj 4.x you need to start from .java files and use a JDK 
other than gcj itself for the .java compilation part as is done, for example, 
here [1]. Unless you're on Intel Mac or need some recent libgcj fixes (such as 
support for index files larger than 2gb), sticking with gcj 3.4.x is easiest.

As for adding extension hooks, it's easiest to copy/paste/modify existing 
hooks. See how the HitCollector is done. Look for strings 
containing 'PythonHitCollector', in the java and cpp dirs, in Makefile and in 
lucene.cpp.

Andi..

[1] http://lists.osafoundation.org/pipermail/pylucene-dev/2006-November/001404.html


More information about the pylucene-dev mailing list