diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-01-11 14:12:00 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-01-11 14:12:00 +0100 |
commit | f16b1005de8b659976197c9d1408062a70f7dc85 (patch) | |
tree | a14065c9860ded16e11af12e9c47c6454309d5b0 /searchlib | |
parent | 91e7cb82172640d2d7b464a298bb9f4c3917f5c2 (diff) |
Rename HnswIndex member function get_vector_by_docid() to get_vectors().
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/tensor/hnsw_index.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp index 0aa4c18c494..4338f5a35e7 100644 --- a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp +++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp @@ -386,7 +386,7 @@ HnswIndex<type>::add_document(uint32_t docid) { vespalib::GenerationHandler::Guard no_guard_needed; PreparedAddDoc op(docid, std::move(no_guard_needed)); - auto input_vectors = get_vector_by_docid(docid); + auto input_vectors = get_vectors(docid); auto subspaces = input_vectors.subspaces(); op.nodes.reserve(subspaces); auto nodeids = _id_mapping.allocate_ids(docid, subspaces); diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index.h b/searchlib/src/vespa/searchlib/tensor/hnsw_index.h index 60452db25a6..38b2c69faf2 100644 --- a/searchlib/src/vespa/searchlib/tensor/hnsw_index.h +++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index.h @@ -146,7 +146,7 @@ protected: inline TypedCells get_vector(uint32_t docid, uint32_t subspace) const { return _vectors.get_vector(docid, subspace); } - inline VectorBundle get_vector_by_docid(uint32_t docid) const { + inline VectorBundle get_vectors(uint32_t docid) const { return _vectors.get_vectors(docid); } |