Index: lucene/src/java/org/apache/lucene/search/FilteredTermsEnum.java =================================================================== --- lucene/src/java/org/apache/lucene/search/FilteredTermsEnum.java (revision 1050609) +++ lucene/src/java/org/apache/lucene/search/FilteredTermsEnum.java (working copy) @@ -21,6 +21,7 @@ import java.util.Comparator; import org.apache.lucene.util.BytesRef; +import org.apache.lucene.index.TermState; import org.apache.lucene.index.TermsEnum; import org.apache.lucene.index.DocsEnum; import org.apache.lucene.index.DocsAndPositionsEnum; @@ -140,6 +141,11 @@ public SeekStatus seek(long ord) throws IOException { throw new UnsupportedOperationException(getClass().getName()+" does not support seeking"); } + + @Override + public SeekStatus seek(BytesRef term, TermState state) throws IOException { + throw new UnsupportedOperationException(getClass().getName()+" does not support seeking"); + } @Override public long ord() throws IOException { @@ -155,12 +161,12 @@ public DocsAndPositionsEnum docsAndPositions(Bits bits, DocsAndPositionsEnum reuse) throws IOException { return tenum.docsAndPositions(bits, reuse); } - + @Override - public void cacheCurrentTerm() throws IOException { - tenum.cacheCurrentTerm(); + public TermState termState() throws IOException { + return tenum.termState(); } - + @SuppressWarnings("fallthrough") @Override public BytesRef next() throws IOException {