
markrmiller at gmail
Jul 5, 2009, 10:49 AM
Post #2 of 2
(240 views)
Permalink
|
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.wang [at] gmail <mailto:john.wang [at] gmail>> > Date: Fri, Jul 3, 2009 at 3:49 PM > Subject: addIndexesNoOptimize > To: java-user [at] lucene <mailto:java-user [at] lucene> > > > 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-unsubscribe [at] lucene For additional commands, e-mail: java-dev-help [at] lucene
|