diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-11-19 14:16:03 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-11-19 14:16:03 +0000 |
commit | 9f2c0a443e61d0790b1b87b7126fcfe6c7d6e951 (patch) | |
tree | 703cc2876f8d72badc2734ca314b66b153adbe44 /searchcore | |
parent | 5361472f495df07e9b1ae2af91c2f780ed8966df (diff) |
Push handling of NearestNeighborTerm down to AttributeBlueprintFactory.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp | 8 | ||||
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/termdatafromnode.cpp | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp b/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp index 2ec3d5b18ee..c8c5a3a427b 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp @@ -109,12 +109,6 @@ private: _result = builder.build(); } - void buildNearestNeighborTerm(ProtonNearestNeighborTerm &n) { - (void) n; - // TODO (geirst): implement - _result = std::make_unique<EmptyBlueprint>(); - } - template <typename NodeType> void buildTerm(NodeType &n) { FieldSpecList indexFields; @@ -149,7 +143,6 @@ protected: void visit(ProtonNear &n) override { buildIntermediate(new NearBlueprint(n.getDistance()), n); } void visit(ProtonONear &n) override { buildIntermediate(new ONearBlueprint(n.getDistance()), n); } void visit(ProtonSameElement &n) override { buildSameElement(n); } - void visit(ProtonNearestNeighborTerm &n) override { buildNearestNeighborTerm(n); } void visit(ProtonWeightedSetTerm &n) override { buildTerm(n); } @@ -166,6 +159,7 @@ protected: void visit(ProtonSuffixTerm &n) override { buildTerm(n); } void visit(ProtonPredicateQuery &n) override { buildTerm(n); } void visit(ProtonRegExpTerm &n) override { buildTerm(n); } + void visit(ProtonNearestNeighborTerm &n) override { buildTerm(n); } public: BlueprintBuilderVisitor(const IRequestContext & requestContext, ISearchContext &context) : diff --git a/searchcore/src/vespa/searchcore/proton/matching/termdatafromnode.cpp b/searchcore/src/vespa/searchcore/proton/matching/termdatafromnode.cpp index 2a87c4dc953..3184b5cc061 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/termdatafromnode.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/termdatafromnode.cpp @@ -42,7 +42,7 @@ struct TermDataFromTermVisitor void visit(ProtonSuffixTerm &n) override { visitTerm(n); } void visit(ProtonPredicateQuery &) override { } void visit(ProtonRegExpTerm &n) override { visitTerm(n); } - void visit(ProtonNearestNeighborTerm &) override { } + void visit(ProtonNearestNeighborTerm &n) override { visitTerm(n); } }; } // namespace |