fix docID() when multi-phrase enum hits NO_MORE_DOCS

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1654242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-01-23 15:40:26 +00:00
parent bd9de6bc24
commit e12dbe663a
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ class UnionDocsAndPositionsEnum extends DocsAndPositionsEnum {
@Override
public final int nextDoc() throws IOException {
if (_queue.size() == 0) {
return NO_MORE_DOCS;
return _doc = NO_MORE_DOCS;
}
// TODO: move this init into positions(): if the search