Against the precompiled ubuntu PyLucene-GCJ 2.2.0-1 binary I get the following
traceback. The equivalent code works against HEAD lucene-jcc. I'm switching
over to JCC anyway so I don't care all that much, but FYI.
In [1]: import PyLucene
WARNING: could not properly read security provider files:
file:/usr/lib/python2.5/site-packages/security/libgcj.security
file:/usr/lib/python2.5/site-packages/security/classpath.security
Falling back to standard GNU security provider
In [2]: PyLucene.VERSION
Out[2]: '2.2.0-1'
In [6]:
directory=PyLucene.FSDirectory.getDirectory('/home/pfein/samples/lucene',
False)
In [7]: reader=PyLucene.IndexReader.open(directory)
In [8]: searcher=PyLucene.IndexSearcher(reader)
In [9]: searcher.getIndexReader()
---------------------------------------------------------------------------
<class 'PyLucene.JavaError'> Traceback (most recent call last)
/home/pfein/grassyknoll/samples/lucene/<ipython console> in <module>()
<class 'PyLucene.JavaError'>: java.lang.ArrayIndexOutOfBoundsException: -1
--
Peter Fein || 773-575-0694 || [EMAIL PROTECTED]
http://www.pobox.com/~pfein/ || PGP: 0xCCF6AE6B
irc: [EMAIL PROTECTED] || jabber: [EMAIL PROTECTED]
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev