mirror of https://github.com/apache/lucene.git
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:
parent
bd9de6bc24
commit
e12dbe663a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue