Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

Fwd: addIndexesNoOptimize

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


john.wang at gmail

Jul 5, 2009, 10:40 AM

Post #1 of 2 (266 views)
Permalink
Fwd: addIndexesNoOptimize

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>
Date: Fri, Jul 3, 2009 at 3:49 PM
Subject: addIndexesNoOptimize
To: 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


markrmiller at gmail

Jul 5, 2009, 10:49 AM

Post #2 of 2 (240 views)
Permalink
Re: Fwd: addIndexesNoOptimize [In reply to]

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

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.