diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-02-22 08:22:45 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-02-22 08:55:27 +0000 |
commit | 617b38af1be6ca5d84d5284cd383908a374f649d (patch) | |
tree | 2fe619fdbcdd9cbff2fab781d097b837ff7d8e65 | |
parent | 7c3f68c15b1e429dab6c987b90d4f012fdceaaf7 (diff) |
keep "Neighbor" as name of struct
-rw-r--r-- | searchlib/src/vespa/searchlib/queryeval/nns_index_iterator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/nns_index_iterator.cpp b/searchlib/src/vespa/searchlib/queryeval/nns_index_iterator.cpp index fd98cbf393d..18e0213e092 100644 --- a/searchlib/src/vespa/searchlib/queryeval/nns_index_iterator.cpp +++ b/searchlib/src/vespa/searchlib/queryeval/nns_index_iterator.cpp @@ -4,7 +4,7 @@ #include <vespa/searchlib/tensor/nearest_neighbor_index.h> #include <cmath> -using Hit = search::tensor::NearestNeighborIndex::Neighbor; +using Neighbor = search::tensor::NearestNeighborIndex::Neighbor; namespace search::queryeval { @@ -17,12 +17,12 @@ class NeighborVectorIterator : public NnsIndexIterator { private: fef::TermFieldMatchData &_tfmd; - const std::vector<Hit> &_hits; + const std::vector<Neighbor> &_hits; uint32_t _idx; double _last_sq_dist; public: NeighborVectorIterator(fef::TermFieldMatchData &tfmd, - const std::vector<Hit> &hits) + const std::vector<Neighbor> &hits) : _tfmd(tfmd), _hits(hits), _idx(0), @@ -60,7 +60,7 @@ public: std::unique_ptr<NnsIndexIterator> NnsIndexIterator::create( fef::TermFieldMatchData &tfmd, - const std::vector<Hit> &hits) + const std::vector<Neighbor> &hits) { return std::make_unique<NeighborVectorIterator>(tfmd, hits); } |