On Wed, 28 Dec 2005, tsuraan wrote:

Thanks for any help you can provide.

A way to investigate this would be to move to python for the index storage
code. Use the code in test_PythonDirectory.py to get you started on
implementing a python implementation of a Lucene Directory suitable for your
needs. That way, you bypass Java and get more control over the management of
files and locks.

So, this can just be used (passed to the constructor of IndexWriter)
like the normal FSDirectory that comes with lucene?

Yes.

I know it's supposed to be a minimal implementation,

It's a unit test, so it may be minimal, but it is functional.

but that's still really cool. I'm going to have to figure out how you made the java/python bridge so amazingly transparent. I'm impressed :)

The java-python extension code, the so-called "SWIG in reverse" is all in the cpp and java PyLucene subdirectories.

I noticed that the FSDirectory has some methods that are missing in
the test_PythonDirectory.  Are these unnecessary, or just left as an
excersize to the reader?

No, PythonDirectory is an extension of org.apache.lucene.store.Directory, not FSDirectory.

Specifically, I would think that getDirectory and getFile would probably be used by things. Anyhow, this looks like a really good place to start.

These are FSDirectory methods, not Directory methods (unless I'm mistaken).

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to