FSDirectory fsd1 = FSDirectory.getDirectory("e:/Index1");
           FSDirectory fsd2 = FSDirectory.getDirectory("e:/Index2");
           FSDirectory fsd3 = FSDirectory.getDirectory("e:/Index3");
           FSDirectory fsd4 = FSDirectory.getDirectory("e:/Index4");
           FSDirectory fsd5 = FSDirectory.getDirectory("e:/Index5");
           FSDirectory fsd6 = FSDirectory.getDirectory("e:/Index6");
           IndexWriter writer = new IndexWriter(blah blah blah);

           writer.addIndexes(new Directory[] { fsd1, fsd2, fsd3, fsd4,
fsd5, fsd6 });


On 5/14/07, Gilbert Groenendijk <[EMAIL PROTECTED]> wrote:

Hi,



Currently I'm trying to create a temporary index on my filesystem and
after
that merge it with an existing index. I've tried to use
'addIndexesNoOptimize' but I need to pass in an array of directories. How
do
I create that array when I'm using FSDirectory.getDirectory. it gives me
an
error like 'addIndexesNoOptimize([o:FSDirectory]). ' Illegal argument.

--
Gilbert Groenendijk
__________________________________________________

Reply via email to