I don't see why we would disallow that. We would prob just want to remove one of the two checks though:

     if (dups.contains(dirs[i]))
throw new IllegalArgumentException("Directory " + dirs[i] + " appears more than once");



--
- Mark

http://www.lucidimagination.com



John Wang wrote:
Guys:

Any thoughts? Forwarding the question from the users list after not hearing back.

Thanks

-John

---------- Forwarded message ----------
From: *John Wang* <john.w...@gmail.com <mailto:john.w...@gmail.com>>
Date: Fri, Jul 3, 2009 at 3:49 PM
Subject: addIndexesNoOptimize
To: java-u...@lucene.apache.org <mailto:java-u...@lucene.apache.org>


Hi guys:

    Running into a question with IndexWriter.addIndexesNoOptimize:

I am trying to expand a smaller index by replicating it into a larger index. So I am adding the same directory N times.

I get an exception because noDupDirs(dirs) fails. For this call, is this check neccessary?

    I temporarily commented it and the resulting index seems to fine.

Thanks

-John





---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to