jpountz commented on code in PR #15039:
URL: https://github.com/apache/lucene/pull/15039#discussion_r2262050840
##########
lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java:
##########
@@ -208,6 +209,16 @@ protected SimScorer() {}
*/
public abstract float score(float freq, long norm);
+ /**
+ * Return a {@link BulkSimScorer} that produces the exact same scores as
this {@link SimScorer}
+ * but is more efficient at bulk-computing scores.
+ *
+ * <p><b>NOTE</b>: The returned instance is not thread-safe.
+ */
+ public BulkSimScorer asBulkSimScorer() {
Review Comment:
No, it's a miss!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]