lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: How to merge lucene indexes ???
Date Mon, 15 May 2006 18:07:43 GMT
On Montag 15 Mai 2006 19:51, Ariel Isaac Romero wrote:

>                 IndexReader indexToMerge =
> IndexReader.open(IndexToMerge); AnalyzerHandler analyzer = new
> AnalyzerHandler(); IndexWriter fsWriter = new IndexWriter(fsDir,
> analyzer.getAnalyzer(), false);

Don't open a reader, supply an array of Directories instead and use an 
IndexWriter that creates a new index (true as last parameter).

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message