mirror of https://github.com/apache/lucene.git
Add only components with non zero nodes
This commit is contained in:
parent
ea82561520
commit
d6ed90d5eb
|
@ -106,7 +106,9 @@ public class HnswUtil {
|
|||
} else {
|
||||
entryPoint = connectedNodes.nextSetBit(0);
|
||||
}
|
||||
components.add(new Component(entryPoint, total));
|
||||
if (total > 0) {
|
||||
components.add(new Component(entryPoint, total));
|
||||
}
|
||||
if (level == 0) {
|
||||
int nextClear = nextClearBit(connectedNodes, 0);
|
||||
while (nextClear != NO_MORE_DOCS) {
|
||||
|
|
Loading…
Reference in New Issue