zhaih commented on code in PR #12114: URL: https://github.com/apache/lucene/pull/12114#discussion_r1091567169
########## lucene/core/src/java/org/apache/lucene/index/FreqProxTermsWriter.java: ########## @@ -379,27 +272,24 @@ public int advance(final int target) throws IOException { @Override public int docID() { - return docIt < 0 ? -1 : docIt >= upto ? NO_MORE_DOCS : docs[docIt]; + return docIt < 0 ? -1 : docs[docIt]; } @Override - public int freq() throws IOException { - return withFreqs && docIt < upto ? freqs[docIt] : 1; + public int nextDoc() throws IOException { + return docs[++docIt]; } @Override - public int nextDoc() throws IOException { - if (++docIt >= upto) return NO_MORE_DOCS; - return docs[docIt]; + public long cost() { + return upTo; } - /** Returns the wrapped {@link PostingsEnum}. */ - PostingsEnum getWrapped() { - return in; + @Override + public int freq() throws IOException { Review Comment: So we're removing `freq` support because no one is really using it? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org