LUCENE-6271: fix bug in SortingDocsEnum

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6271@1670483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-03-31 21:15:27 +00:00
parent 4128f5b563
commit 0565536b7f
1 changed files with 22 additions and 0 deletions
lucene/misc/src/java/org/apache/lucene/index

View File

@ -487,6 +487,28 @@ public class SortingLeafReader extends FilterLeafReader {
PostingsEnum getWrapped() {
return in;
}
// we buffer up docs/freqs only, don't forward any positions requests to underlying enum
@Override
public int nextPosition() throws IOException {
return -1;
}
@Override
public int startOffset() throws IOException {
return -1;
}
@Override
public int endOffset() throws IOException {
return -1;
}
@Override
public BytesRef getPayload() throws IOException {
return null;
}
}
static class SortingPostingsEnum extends FilterPostingsEnum {