|
From: <php...@li...> - 2007-05-14 14:39:09
|
Anyone got a clue how to rewrite this to PHP5?
FSDirectory fsd1 = FSDirectory.getDirectory("e:/Index1");
FSDirectory fsd2 = FSDirectory.getDirectory("e:/Index2");
writer.addIndexes(new Directory[] { fsd1, fsd2});
Would be something like:
$oDir =new Java( 'org.apache.lucene.store.FSDirectory');
$myDir = $oDir->getDirectory($sCurrentIndexPath,false);
but then 'writer.addIndexes(new Directory[] { fsd1, fsd2});'
I really need the array type directory or my code throws an exception.
Thanks in advance
Gilbert
|