zhaih commented on code in PR #12480:
URL: https://github.com/apache/lucene/pull/12480#discussion_r1302278519
##########
lucene/core/src/java/org/apache/lucene/util/hnsw/NeighborArray.java:
##########
@@ -108,10 +111,16 @@ public int[] sort() {
}
/** insert the first unsorted node into its sorted position */
- private int insertSortedInternal() {
+ private int insertSortedInternal(ScoringFunction scoringFunction) throws
IOException {
assert sortedNodeSize < size : "Call this method only when there's
unsorted node";
int tmpNode = node[sortedNodeSize];
float tmpScore = score[sortedNodeSize];
+
+ if (Float.isNaN(tmpScore)){
+ tmpScore = scoringFunction.computeScore(tmpNode);
+ System.out.println("Node: " + tmpNode + " Score: " + tmpScore);
Review Comment:
remove this?
--
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]