[pylucene-dev] IndexWriter.addIndexes() problems
Andi Vajda
vajda at osafoundation.org
Tue Jan 18 08:37:21 PST 2005
> 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..
More information about the pylucene-dev
mailing list