Thanks, I appreciate the useful info. I can go with option 1.
Mark
private static IndexSearcher getSearcher( String[] indexDirs ) throws Exception
{
IndexReader[] readers = new IndexReader[indexDirs.length];
FSDirectory[] directorys = new FSDirectory[indexDirs.length];
for ( int i = 0; i < indexDirs.length; ++i ) {
File file = new File( indexDirs[i] );
How can I find the single index associated with each Document returned by a
search over multiple indexes? The document number is not enough, I want to
save the index also so that later I can retrieve the file contents that was
stored in the index. This question applies to Lucene 3.5.0.
Thanks