diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-04-25 14:01:57 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-04-25 14:01:57 +0000 |
commit | e4807b9c5d6f54e5bf55bef5e6ddf64509342308 (patch) | |
tree | 365124097255ee026233d1a4d068c0ca3895b652 /searchcore/src/tests/proton/matching | |
parent | 4dcee519a7b8d1b48cd9e0b3b6cbb003dc6c24d4 (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.cpp | 8 |
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()); |