Andi, I have problem with invoking IndexWriter.addIndexes()
Traceback (most recent call last): File "./merge.py", line 9, in ? writer.addIndexes(['/home/th/index/things/index04']) File "/usr/lib/python2.4/site-packages/PyLucene.py", line 900, in addIndexes def addIndexes(*args): return _PyLucene.IndexWriter_addIndexes(*args) ValueError: Expected a Directory
I have specified correct directory. This thing does not work on Windows and Linux.
Any tricks to make this run?
Yes, pass an array of org.apache.lucene.store.Directory instances. From the code above it looks like you're passing an array of strings.
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexWriter.html#addIndexes(org.apache.lucene.store.Directory[])
Andi.. _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
