aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-11-08 15:15:51 +0000
committerGeir Storli <geirst@yahooinc.com>2022-11-08 15:15:51 +0000
commitb3bb0e09fecff8cd3ae0cd97de02ed3ae81475cb (patch)
treef1e97e7a9cb7bc5dd3591b53a4e0f93c7f07ff56
parent3a4cad98697dc69a04e6de6154b6621b2d6abb54 (diff)
Fix the query trace type of allow_termwise_eval.
-rw-r--r--searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp8
-rw-r--r--searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp4
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/blueprint.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp b/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp
index 4b9c23ea5d3..6f4ffc31741 100644
--- a/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp
+++ b/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp
@@ -679,7 +679,7 @@ getExpectedBlueprint()
" estHits: 9\n"
" cost_tier: 1\n"
" tree_size: 2\n"
- " allow_termwise_eval: 0\n"
+ " allow_termwise_eval: false\n"
" }\n"
" sourceId: 4294967295\n"
" docid_limit: 0\n"
@@ -698,7 +698,7 @@ getExpectedBlueprint()
" estHits: 9\n"
" cost_tier: 1\n"
" tree_size: 1\n"
- " allow_termwise_eval: 1\n"
+ " allow_termwise_eval: true\n"
" }\n"
" sourceId: 4294967295\n"
" docid_limit: 0\n"
@@ -727,7 +727,7 @@ getExpectedSlimeBlueprint() {
" estHits: 9,"
" cost_tier: 1,"
" tree_size: 2,"
- " allow_termwise_eval: 0"
+ " allow_termwise_eval: false"
" },"
" sourceId: 4294967295,"
" docid_limit: 0,"
@@ -751,7 +751,7 @@ getExpectedSlimeBlueprint() {
" estHits: 9,"
" cost_tier: 1,"
" tree_size: 1,"
- " allow_termwise_eval: 1"
+ " allow_termwise_eval: true"
" },"
" sourceId: 4294967295,"
" docid_limit: 0"
diff --git a/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp b/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp
index 1ac91c5d8d6..55ca42f7369 100644
--- a/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp
+++ b/searchlib/src/tests/queryeval/parallel_weak_and/parallel_weak_and_test.cpp
@@ -595,7 +595,7 @@ TEST_F("require that asString() on blueprint works", BlueprintAsStringFixture)
" estHits: 2\n"
" cost_tier: 1\n"
" tree_size: 2\n"
- " allow_termwise_eval: 0\n"
+ " allow_termwise_eval: false\n"
" }\n"
" sourceId: 4294967295\n"
" docid_limit: 0\n"
@@ -617,7 +617,7 @@ TEST_F("require that asString() on blueprint works", BlueprintAsStringFixture)
" estHits: 2\n"
" cost_tier: 1\n"
" tree_size: 1\n"
- " allow_termwise_eval: 1\n"
+ " allow_termwise_eval: true\n"
" }\n"
" sourceId: 4294967295\n"
" docid_limit: 0\n"
diff --git a/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp b/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp
index 9c9df6b82fe..91aa308f008 100644
--- a/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp
+++ b/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp
@@ -336,7 +336,7 @@ Blueprint::visitMembers(vespalib::ObjectVisitor &visitor) const
visitor.visitInt("estHits", state.estimate().estHits);
visitor.visitInt("cost_tier", state.cost_tier());
visitor.visitInt("tree_size", state.tree_size());
- visitor.visitInt("allow_termwise_eval", state.allow_termwise_eval());
+ visitor.visitBool("allow_termwise_eval", state.allow_termwise_eval());
visitor.closeStruct();
visitor.visitInt("sourceId", _sourceId);
visitor.visitInt("docid_limit", _docid_limit);