msokolov commented on code in PR #15184:
URL: https://github.com/apache/lucene/pull/15184#discussion_r2348953441


##########
lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphBuilder.java:
##########
@@ -144,8 +148,8 @@ protected HnswGraphBuilder(
       throw new IllegalArgumentException("beamWidth must be positive");
     }
     this.M = hnsw.maxConn();
-    this.scorerSupplier =
-        Objects.requireNonNull(scorerSupplier, "scorer supplier must not be 
null");
+    this.scorer =
+        Objects.requireNonNull(scorerSupplier, "scorer supplier must not be 
null").scorer();

Review Comment:
   let's change the error message to say "*scorer* must not be null"



-- 
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]

Reply via email to