aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/apps/vespa-ranking-expression-analyzer/vespa-ranking-expression-analyzer.cpp2
-rw-r--r--searchlib/src/vespa/searchlib/features/rankingexpressionfeature.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/searchlib/src/apps/vespa-ranking-expression-analyzer/vespa-ranking-expression-analyzer.cpp b/searchlib/src/apps/vespa-ranking-expression-analyzer/vespa-ranking-expression-analyzer.cpp
index 55f3154a43f..941b0377a97 100644
--- a/searchlib/src/apps/vespa-ranking-expression-analyzer/vespa-ranking-expression-analyzer.cpp
+++ b/searchlib/src/apps/vespa-ranking-expression-analyzer/vespa-ranking-expression-analyzer.cpp
@@ -165,7 +165,7 @@ struct FunctionInfo {
size_t path = 0;
for (const Node *tree: trees) {
InterpretedFunction ifun(DefaultTensorEngine::ref(), *tree, params.size(), NodeTypes());
- InterpretedFunction::Context ctx;
+ InterpretedFunction::Context ctx(ifun);
for (double param: params) {
ctx.add_param(param);
}
diff --git a/searchlib/src/vespa/searchlib/features/rankingexpressionfeature.cpp b/searchlib/src/vespa/searchlib/features/rankingexpressionfeature.cpp
index e11bd4d264d..cc8238a50a1 100644
--- a/searchlib/src/vespa/searchlib/features/rankingexpressionfeature.cpp
+++ b/searchlib/src/vespa/searchlib/features/rankingexpressionfeature.cpp
@@ -71,9 +71,9 @@ public:
class InterpretedRankingExpressionExecutor : public fef::FeatureExecutor
{
private:
- InterpretedFunction::Context _context;
const InterpretedFunction &_function;
const ConstArrayRef<char> _input_is_object;
+ InterpretedFunction::Context _context;
public:
InterpretedRankingExpressionExecutor(const InterpretedFunction &function,
@@ -102,9 +102,9 @@ CompiledRankingExpressionExecutor::execute(uint32_t)
InterpretedRankingExpressionExecutor::InterpretedRankingExpressionExecutor(const InterpretedFunction &function,
ConstArrayRef<char> input_is_object)
- : _context(),
- _function(function),
- _input_is_object(input_is_object)
+ : _function(function),
+ _input_is_object(input_is_object),
+ _context(function)
{
}