[pylucene-dev] PyLucene Problem
Andi Vajda
vajda at osafoundation.org
Sat Aug 13 09:36:45 PDT 2005
>
> 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 java-user at lucene.apache.org list if 1.9pre1 indexes can be read
with 1.4.3 would also be a good idea.
Andi..
More information about the pylucene-dev
mailing list