jpountz commented on code in PR #14293: URL: https://github.com/apache/lucene/pull/14293#discussion_r1973122492
########## lucene/core/src/java/org/apache/lucene/search/TermQuery.java: ########## @@ -165,6 +165,17 @@ public Scorer get(long leadCost) throws IOException { } } + @Override + public BulkScorer bulkScorer() throws IOException { + if (scoreMode.needsScores() == false) { + DocIdSetIterator iterator = get(Long.MAX_VALUE).iterator(); + int maxDoc = context.reader().maxDoc(); + return ConstantScoreScorerSupplier.fromIterator(iterator, 0f, scoreMode, maxDoc) Review Comment: I think so, but I plan on having a potentially better way of doing it by reviving #12194 as a follow-up and skipping clauses that fully match a window (which would also remove the need for `MatchAllScorerSupplier`). -- 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