Skip to content

Commit 8b510fb

Browse files
committed
All Field: All field cane fail to analyze input data (rare cases), closes elastic#743.
1 parent 0f79516 commit 8b510fb

File tree

1 file changed

+3
-0
lines changed
  • modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/all

1 file changed

+3
-0
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/all/AllEntries.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public Entry current() {
160160
current = it.next();
161161
} else {
162162
current = null;
163+
if (read == 0) {
164+
return -1;
165+
}
163166
return read;
164167
}
165168
cbuf[off++] = ' ';

0 commit comments

Comments
 (0)