Thank you for your reply. With addIndexes this works perfectly but when i change it to:
writer.addIndexesNoOptimize(new Directory[] { fsd1}); It throws an exception saying it doesn't have a method with this parameters. I need a fast merge and with the optimization this is not possible and i want to test how fast it is without optimizing. On 5/14/07, Erick Erickson <[EMAIL PROTECTED]> wrote:
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 > __________________________________________________ >