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* <[email protected] <mailto:[email protected]>>
Date: Fri, Jul 3, 2009 at 3:49 PM
Subject: addIndexesNoOptimize
To: [email protected] <mailto:[email protected]>


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to