diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-11-15 21:10:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 21:10:07 +0100 |
commit | 1581058d13a1e23769470302879b5f3b50483099 (patch) | |
tree | 1a1e33b128ea8bc99a69ff0108354ca8ebf1d187 /searchlib/src/tests | |
parent | 9a35cc0b67c8d9e5abe0b5b66ed7fc0a67498c07 (diff) | |
parent | 7310a44974c2b2e2e261247fef6970a3e149dd95 (diff) |
Merge pull request #24877 from vespa-engine/toregge/move-inner-class-hnswindex-config-to-hnswindexconfigv8.85.9
Move inner class HnswIndex::Config to HnswIndexConfig.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r-- | searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp b/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp index 26aa56aa27b..515715eb6b1 100644 --- a/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp +++ b/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp @@ -103,7 +103,7 @@ public: level_generator = generator.get(); index = std::make_unique<HnswIndex>(vectors, std::make_unique<SquaredEuclideanDistance>(vespalib::eval::CellType::FLOAT), std::move(generator), - HnswIndex::Config(5, 2, 10, 0, heuristic_select_neighbors)); + HnswIndexConfig(5, 2, 10, 0, heuristic_select_neighbors)); } void add_document(uint32_t docid, uint32_t max_level = 0) { level_generator->level = max_level; diff --git a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp index 2a3f0b4af27..ccf19c7620d 100644 --- a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp +++ b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp @@ -252,7 +252,7 @@ public: uint32_t m = 16; index = std::make_unique<HnswIndex>(vectors, std::make_unique<FloatSqEuclideanDistance>(), std::make_unique<InvLogLevelGenerator>(m), - HnswIndex::Config(2*m, m, 200, 10, true)); + HnswIndexConfig(2*m, m, 200, 10, true)); } size_t get_rnd(size_t size) { return rng.nextUniform() * size; |