summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-04-25 14:01:57 +0000
committerGeir Storli <geirst@yahooinc.com>2022-04-26 09:14:10 +0000
commit77cc53839d3a9c2eeb4781ad81dc97feaaf4fc00 (patch)
tree9dfb032ea4eea17773ab2e3706d6376c8a307cb3 /searchcore/src/tests/proton/matching
parentdebff80c81f6362427d25b8d5d1a6f3ae90d859d (diff)
Improve and re-structure trace logging from the query setup part of matching.
Especially, provide more details for the selection of global filter strategy.
Diffstat (limited to 'searchcore/src/tests/proton/matching')
-rw-r--r--searchcore/src/tests/proton/matching/query_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/matching/query_test.cpp b/searchcore/src/tests/proton/matching/query_test.cpp
index 7f0232120e7..1c31cb1d1ad 100644
--- a/searchcore/src/tests/proton/matching/query_test.cpp
+++ b/searchcore/src/tests/proton/matching/query_test.cpp
@@ -1138,19 +1138,19 @@ Test::global_filter_is_calculated_and_handled()
uint32_t docid_limit = 10;
{ // global filter is not wanted
GlobalFilterBlueprint bp(result, false);
- auto res = Query::handle_global_filter(bp, docid_limit, 0, 1);
+ auto res = Query::handle_global_filter(bp, docid_limit, 0, 1, nullptr);
EXPECT_FALSE(res);
EXPECT_FALSE(bp.filter);
}
{ // estimated_hit_ratio < global_filter_lower_limit
GlobalFilterBlueprint bp(result, true);
- auto res = Query::handle_global_filter(bp, docid_limit, 0.31, 1);
+ auto res = Query::handle_global_filter(bp, docid_limit, 0.31, 1, nullptr);
EXPECT_FALSE(res);
EXPECT_FALSE(bp.filter);
}
{ // estimated_hit_ratio <= global_filter_upper_limit
GlobalFilterBlueprint bp(result, true);
- auto res = Query::handle_global_filter(bp, docid_limit, 0, 0.3);
+ auto res = Query::handle_global_filter(bp, docid_limit, 0, 0.3, nullptr);
EXPECT_TRUE(res);
EXPECT_TRUE(bp.filter);
EXPECT_TRUE(bp.filter->has_filter());
@@ -1163,7 +1163,7 @@ Test::global_filter_is_calculated_and_handled()
}
{ // estimated_hit_ratio > global_filter_upper_limit
GlobalFilterBlueprint bp(result, true);
- auto res = Query::handle_global_filter(bp, docid_limit, 0, 0.29);
+ auto res = Query::handle_global_filter(bp, docid_limit, 0, 0.29, nullptr);
EXPECT_TRUE(res);
EXPECT_TRUE(bp.filter);
EXPECT_FALSE(bp.filter->has_filter());