jpountz commented on code in PR #14679: URL: https://github.com/apache/lucene/pull/14679#discussion_r2093664788
########## lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java: ########## @@ -208,6 +208,25 @@ protected SimScorer() {} */ public abstract float score(float freq, long norm); + /** + * Batch-score documents. This method scores {@code size} documents at once. The default + * implementation can be found below: + * + * <pre class="prettyprint"> + * for (int i = 0; i < size; ++i) { + * scores[i] = score(freqs[i], norms[i]); + * } + * </pre> + * + * @see #score(float, long) + * @lucene.internal + */ + public void score(int size, int[] freqs, long[] norms, float[] scores) { + for (int i = 0; i < size; ++i) { + scores[i] = score(freqs[i], norms[i]); Review Comment: Exciting! -- 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