diff options
author | Haavard <havardpe@yahoo-inc.com> | 2017-02-23 15:13:44 +0000 |
---|---|---|
committer | Haavard <havardpe@yahoo-inc.com> | 2017-02-23 17:10:37 +0000 |
commit | 9cb7505ccdc58dcfaa341a9c54eee60d2d16531e (patch) | |
tree | 67baab933561ad0c3dbc55a597672a0a4842cade /searchlib/src/tests/features/prod_features_attributematch.cpp | |
parent | beea9069a65cd3625ebbbd20fb386baeed091d24 (diff) |
lazy evaluate ranking expressions
Diffstat (limited to 'searchlib/src/tests/features/prod_features_attributematch.cpp')
-rw-r--r-- | searchlib/src/tests/features/prod_features_attributematch.cpp | 8 |
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)); } |