romseygeek commented on code in PR #12407: URL: https://github.com/apache/lucene/pull/12407#discussion_r1247925963
########## lucene/core/src/java/org/apache/lucene/search/FieldComparator.java: ########## @@ -183,10 +183,7 @@ public void setTopValue(Float value) { @Override public void setScorer(Scorable scorer) { - // wrap with a ScoreCachingWrappingScorer so that successive calls to - // score() will not incur score computation over and - // over again. - this.scorer = ScoreCachingWrappingScorer.wrap(scorer); Review Comment: Is the idea that this is always handled by TopFieldCollector so we don't need to wrap here? -- 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