I think that do not solve my problem, because the line who's throwing the exception is this :
IndexWriter fsWriter = new IndexWriter(fsDir, analyzer.getAnalyzer(), false); Besides if I create a new master index each time I'm going to merge them I'd lose others indexes I have merged into master index before, that's why I can't put the boolean parameter true. I really need help, please. I'm open to any suggestion. On 5/15/06, Daniel Naber <[EMAIL PROTECTED]> wrote:
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]