You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Antony Bowesman <ad...@teamware.com> on 2008/09/05 06:57:59 UTC

Javadoc wording in IndexWriter.addIndexesNoOptimize()

The Javadoc for this method has the following comment:

"This requires this index not be among those to be added, and the upper bound* 
of those segment doc counts not exceed maxMergeDocs. "

What does the second part of that mean, which is especially confusing given that 
MAX_MERGE_DOCS is deprecated.

Thanks
Antony



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Javadoc wording in IndexWriter.addIndexesNoOptimize()

Posted by Michael McCandless <lu...@mikemccandless.com>.
IndexWriter.{set,get}MaxMergeDocs isn't deprecated, but it is a  
convenience method for the corresponding calls on the MergePolicy.

Sorry, that javadoc is now false -- we decided that check (2nd point  
in the javadoc) was overly pedantic so it was removed (this was  
LUCENE-1254), but I forgot to fix that javadoc in 2.3.

This has already been fixed on the trunk so it'll be fixed in 2.4.

Sorry for the confusion,

Mike

Antony Bowesman wrote:

> The Javadoc for this method has the following comment:
>
> "This requires this index not be among those to be added, and the  
> upper bound* of those segment doc counts not exceed maxMergeDocs. "
>
> What does the second part of that mean, which is especially  
> confusing given that MAX_MERGE_DOCS is deprecated.
>
> Thanks
> Antony
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org