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 Trejkaz
On Wed, Jun 15, 2016 at 6:08 AM, Mark Shapiro wrote: > 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 < in

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] );

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

2016-06-13 Thread Trejkaz
On Tue, Jun 14, 2016 at 9:01 AM, Mark Shapiro wrote: > 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 store

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