Re: How to get the index for a document after a search over multiple indexes

2016-06-15 Thread Mark Shapiro
Thanks, I appreciate the useful info. I can go with option 1. Mark

Re: How to get the index for a document after a search over multiple indexes

2016-06-14 Thread Mark Shapiro
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 to get the index for a document after a search over multiple indexes

2016-06-13 Thread Mark Shapiro
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