apache / apache/lucene

Detect and report when the limit for maximum number of documents in a single index is exceeded [LUCENE-4105]

Open
#5,177 1 comment 0 reactions 0 assignees View on GitHub
affects-version:3.6 legacy-jira-priority:Minor module:core/index type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

#5176 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.

---
Migrated from [LUCENE-4105](https://issues.apache.org/jira/browse/LUCENE-4105) by Jack Krupansky

Contributor guide

Open the contributing guide

Research direction

Start by tracing the IndexWriter.addDocument, addDocuments, addIndexes, and updateDocuments APIs named in the issue, and review #5176 for the documented maximum. Determine how exceeding the limit should be detected and reported through a new MaxDocumentException; done means the affected APIs consistently provide that sensible exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.