From 37ed6d74eacaa31789318a313296b740e4cdc22d Mon Sep 17 00:00:00 2001 From: Ben Chaplin Date: Wed, 13 Nov 2024 11:43:09 -0500 Subject: [PATCH] Add TODO for more checks --- lucene/core/src/java/org/apache/lucene/index/CheckIndex.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java index f75d70c8306..095bdb0256d 100644 --- a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java +++ b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java @@ -2872,6 +2872,7 @@ public final class CheckIndex implements Closeable { throw new CheckIndexException( "There are repeated neighbors of node " + node + " with value " + nbr); } + // TODO: add checks: nodes are within range and neighbors are on the same level lastNeighbor = nbr; } status.hnswGraphsStatusByField.get(fieldName).totalNumNodes++;