From: <php...@li...> - 2007-05-15 10:23:13
|
Hi Gilbert, > FSDirectory fsd1 = > FSDirectory.getDirectory("e:/Index1"); $fsd1=java('org.apache.lucene.store.FSDirectory')->getDirectory("e:/Index1"); > writer.addIndexes(new Directory[] { fsd1, fsd2}); $writer->addIndexes(array($fsd1, $fsd2)); > I really need the array type directory or my code > throws an exception. The tests.php5 directory contains a test for the above case. A PhpArray can and will be coerced into the target array type. It cannot do this, if you pass different element types, of course. This seems to be the problem with the PHP code you've given. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |