aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/query/streaming/querynode.h
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-04-17 15:22:39 +0200
committerTor Egge <Tor.Egge@online.no>2023-04-17 15:22:39 +0200
commit65fd71ee79c454fc4b014f6f55c481338b45c791 (patch)
tree46299b6c8bdeb6f959ea68c6d4a7fe00d34f2119 /searchlib/src/vespa/searchlib/query/streaming/querynode.h
parent5966f34134275aa558299ce3dc99c25c0a8fcaee (diff)
Add NearestNeighborQueryNode.
Diffstat (limited to 'searchlib/src/vespa/searchlib/query/streaming/querynode.h')
-rw-r--r--searchlib/src/vespa/searchlib/query/streaming/querynode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/query/streaming/querynode.h b/searchlib/src/vespa/searchlib/query/streaming/querynode.h
index 574a3c16ca3..c3fa2b63f69 100644
--- a/searchlib/src/vespa/searchlib/query/streaming/querynode.h
+++ b/searchlib/src/vespa/searchlib/query/streaming/querynode.h
@@ -28,6 +28,7 @@ using ConstQueryTermList = std::vector<const QueryTerm *>;
*/
class QueryNode
{
+ static std::unique_ptr<QueryNode> build_nearest_neighbor_query_node(const QueryNodeResultFactory& factory, SimpleQueryStackDumpIterator& queryRep);
public:
using UP = std::unique_ptr<QueryNode>;
@@ -54,7 +55,7 @@ class QueryNode
virtual size_t depth() const { return 1; }
/// Return the width of this tree.
virtual size_t width() const { return 1; }
- static UP Build(const QueryNode * parent, const QueryNodeResultFactory & org, SimpleQueryStackDumpIterator & queryRep, bool allowRewrite);
+ static UP Build(const QueryNode * parent, const QueryNodeResultFactory& factory, SimpleQueryStackDumpIterator & queryRep, bool allowRewrite);
};
/// A list conating the QuerNode objects. With copy/assignment.