aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/features/prod_features_attributematch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/features/prod_features_attributematch.cpp')
-rw-r--r--searchlib/src/tests/features/prod_features_attributematch.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/searchlib/src/tests/features/prod_features_attributematch.cpp b/searchlib/src/tests/features/prod_features_attributematch.cpp
index 06b2b859709..fc69061b4ef 100644
--- a/searchlib/src/tests/features/prod_features_attributematch.cpp
+++ b/searchlib/src/tests/features/prod_features_attributematch.cpp
@@ -234,6 +234,10 @@ Test::testAttributeMatch()
mdb->apply(1);
exp.clear().
addScore("attributeMatch(wsint).fieldCompleteness", 0.5f);
+ { // reset lazy evaluation
+ RankResult dummy;
+ ft.executeOnly(dummy, 0);
+ }
ASSERT_TRUE(ft.execute(exp));
// test that normalized values lies in the interval [0,1].
@@ -243,6 +247,10 @@ Test::testAttributeMatch()
exp.clear().
addScore("attributeMatch(wsfloat).normalizedWeight", 1).
addScore("attributeMatch(wsfloat).normalizedWeightedWeight", 1);
+ { // reset lazy evaluation
+ RankResult dummy;
+ ft.executeOnly(dummy, 0);
+ }
ASSERT_TRUE(ft.execute(exp));
}