I created an index with Java-Lucene-1.9pre1 and want to access it now using
PyLucene (I know it is 1.4.3, but with Java-Lucene-1.4.3 I can access it).
Now I am doing this:
STORE_DIR = "/home/xxx/lucene-test/index-big"
print 'PyLucene', VERSION, 'Lucene', LUCENE_VERSION
directory = FSDirectory.getDirectory(STORE_DIR, False)
reader = IndexReader.open(directory)
and it gives me:
# python2.4 fm2.py
PyLucene 1.0 Lucene 1.4.3
Traceback (most recent call last):
File "fm2.py", line 28, in ?
reader = IndexReader.open(directory)
PyLucene.JavaError: java.lang.ArrayIndexOutOfBoundsException: -1
#
GCJ version:
gcj-4.0 (GCC) 4.0.2 20050725 (prerelease) (Debian 4.0.1-3)
What am I missing here?
I don't know. Could you please send in a tiny index created with
Java-Lucene-1.9pre1 so that I can reproduce your problem ?
Asking the [email protected] list if 1.9pre1 indexes can be read
with 1.4.3 would also be a good idea.
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev