mirror of https://github.com/apache/lucene.git
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:
parent
4128f5b563
commit
0565536b7f
lucene/misc/src/java/org/apache/lucene/index
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue