Thanks, I appreciate the useful info. I can go with option 1.
Mark
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
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] );
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 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