> When do you open the index writer? Where is the code?
Ah, sorry. That last section is in a method that gets called in a loop.
IndexWriter writer = null;
try {
writer = new IndexWriter( mainindex, new StandardAnalyzer(), false
);
for ( int i = 0; i < directories.length; i++ ) {
moveDocumentsOver( writer, directories[i] );
// delete dir
}
}
catch ( Exception e ) {
// log error
}
finally {
if ( writer != null ) try { writer.close(); } catch ( Exception e )
{}
}
Roy.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]