Use heuristic selection for randomized test

This commit is contained in:
Dirkjan Ochtman 2021-01-19 10:50:17 +01:00
parent e4d66890da
commit c3a7ff5d23
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ fn randomized() {
} }
} }
let (hnsw, pids) = Hnsw::<Point>::builder().seed(seed).build(&points); let (hnsw, pids) = Hnsw::<Point>::builder()
.seed(seed)
.select_heuristic(Default::default())
.build(&points);
let mut search = Search::default(); let mut search = Search::default();
let mut results = vec![PointId::default(); 100]; let mut results = vec![PointId::default(); 100];
let found = hnsw.search(&query, &mut results, &mut search); let found = hnsw.search(&query, &mut results, &mut search);