Index: lucene/src/java/org/apache/lucene/index/codecs/standard/StandardPostingsReaderImpl.java =================================================================== --- lucene/src/java/org/apache/lucene/index/codecs/standard/StandardPostingsReaderImpl.java (revision 955681) +++ lucene/src/java/org/apache/lucene/index/codecs/standard/StandardPostingsReaderImpl.java (working copy) @@ -159,7 +159,7 @@ docsEnum = new SegmentDocsEnum(freqIn); } else { docsEnum = (SegmentDocsEnum) reuse; - if (docsEnum.freqIn != freqIn) { + if (docsEnum.startFreqIn != freqIn) { // If you are using ParellelReader, and pass in a // reused DocsEnum, it could have come from another // reader also using standard codec @@ -186,6 +186,7 @@ // Decodes only docs private class SegmentDocsEnum extends DocsEnum { final IndexInput freqIn; + final IndexInput startFreqIn; boolean omitTF; // does current field omit term freq? boolean storePayloads; // does current field store payloads? @@ -204,6 +205,7 @@ DefaultSkipListReader skipper; public SegmentDocsEnum(IndexInput freqIn) throws IOException { + startFreqIn = freqIn; this.freqIn = (IndexInput) freqIn.clone(); }