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
That *should* work. Can you post more of your code?
Particularly the index creation code where you instantiate
your index.
Also, what assurance do you have that fsd1 exists? Although
even if it doesn't exist the exception seems odd.
Instead of just giving the name of the exception, please post
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
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 =