[ 
https://issues.apache.org/jira/browse/LUCENE-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288274#comment-13288274
 ] 

Jack Krupansky commented on LUCENE-4105:
----------------------------------------

To facilitate testing, I would propose an expert/testing method that would bump 
the internal document number for a segment arbitrarily so that it could be set 
to say Integer.MAX_VALUE - k so that the limit could be hit by adding only a 
relatively small number of documents.

I am not sure of the ramifications to existing code of such a gap, but since 
document numbers within a segment are per-segment anyway, I suspect it should 
be feasible, at least if it is done before any docs are added to the segment.

                
> Detect and report when the limit for maximum number of documents in a single 
> index is exceeded
> ----------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4105
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4105
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/index
>    Affects Versions: 3.6
>            Reporter: Jack Krupansky
>            Priority: Minor
>
> LUCENE-4104 documents the limit for maximum number of documents in a single 
> index, but it is highly desirable to have Lucene detect when this limit is 
> reached and throw a sensible exception for the user.
> I am not sure of the implementation details, but it seems as if 
> IndexWriter.addDocument, addDocuments, addIndexes, and updateDocuments would 
> be the APIs from which a new exception, call is MaxDocumentException would be 
> thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to