mirror of https://github.com/apache/lucene.git
LUCENE-5843: this is a bug not a feature!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1614422 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73503c4f66
commit
03f937fa06
|
@ -134,12 +134,6 @@ New Features
|
|||
of footer, this can detect some forms of corruption such as truncation.
|
||||
(Robert Muir)
|
||||
|
||||
* LUCENE-5843: Added IndexWriter.MAX_DOCS which is the maximum number
|
||||
of documents allowed in a single index, and any operations that add
|
||||
documents will now throw IllegalStateException if the max count
|
||||
would be exceeded, instead of silently creating an unusable
|
||||
index. (Mike McCandless)
|
||||
|
||||
API Changes
|
||||
|
||||
* LUCENE-5752: Simplified Automaton API to be immutable. (Mike McCandless)
|
||||
|
@ -221,6 +215,12 @@ Bug Fixes
|
|||
Integer.MAX_VALUE - 8 for the maximum array size. (Robert Muir,
|
||||
Mike McCandless)
|
||||
|
||||
* LUCENE-5843: Added IndexWriter.MAX_DOCS which is the maximum number
|
||||
of documents allowed in a single index, and any operations that add
|
||||
documents will now throw IllegalStateException if the max count
|
||||
would be exceeded, instead of silently creating an unusable
|
||||
index. (Mike McCandless)
|
||||
|
||||
Test Framework
|
||||
|
||||
* LUCENE-5786: Unflushed/ truncated events file (hung testing subprocess).
|
||||
|
|
|
@ -913,7 +913,9 @@ final class SegmentTermsEnum extends TermsEnum {
|
|||
// Pop finished blocks
|
||||
while (currentFrame.nextEnt == currentFrame.entCount) {
|
||||
if (!currentFrame.isLastInFloor) {
|
||||
// Advance to next floor block
|
||||
currentFrame.loadNextFloorBlock();
|
||||
break;
|
||||
} else {
|
||||
//if (DEBUG) System.out.println(" pop frame");
|
||||
if (currentFrame.ord == 0) {
|
||||
|
|
|
@ -539,9 +539,10 @@ final class SegmentTermsEnumFrame {
|
|||
// keep scanning
|
||||
|
||||
if (nextEnt == entCount) {
|
||||
if (exactOnly) {
|
||||
fillTerm();
|
||||
}
|
||||
// nocommit?
|
||||
//if (exactOnly) {
|
||||
//fillTerm();
|
||||
//}
|
||||
// We are done scanning this block
|
||||
break nextTerm;
|
||||
} else {
|
||||
|
@ -658,10 +659,11 @@ final class SegmentTermsEnumFrame {
|
|||
// keep scanning
|
||||
|
||||
if (nextEnt == entCount) {
|
||||
if (exactOnly) {
|
||||
fillTerm();
|
||||
//termExists = true;
|
||||
}
|
||||
// nocommit?
|
||||
//if (exactOnly) {
|
||||
//fillTerm();
|
||||
//termExists = true;
|
||||
//}
|
||||
// We are done scanning this block
|
||||
break nextTerm;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue