mirror of https://github.com/apache/lucene.git
LUCENE-9731: restore consistent random seed to HnswGraphBuilder (#2299)
This commit is contained in:
parent
8fccdfe353
commit
e2cf6ee74d
|
@ -218,7 +218,7 @@ public final class Lucene90VectorWriter extends VectorWriter {
|
|||
}
|
||||
}
|
||||
HnswGraphBuilder hnswGraphBuilder =
|
||||
new HnswGraphBuilder(vectorValues, maxConn, beamWidth, System.currentTimeMillis());
|
||||
new HnswGraphBuilder(vectorValues, maxConn, beamWidth, HnswGraphBuilder.randSeed);
|
||||
hnswGraphBuilder.setInfoStream(segmentWriteState.infoStream);
|
||||
HnswGraph graph = hnswGraphBuilder.build(vectorValues.randomAccess());
|
||||
|
||||
|
|
Loading…
Reference in New Issue