diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-04-22 11:37:45 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-04-22 11:41:35 +0000 |
commit | 60338ad42fa4b5855fb58782d8819ea526f827c2 (patch) | |
tree | 701f558d4c887e04bc655e6f3b9d28db37fb7724 /searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp | |
parent | a54e8bacfd1d2be446fc89e16586acee94f79131 (diff) |
Improve and extend visit trace for nearest neighbor blueprint.
Diffstat (limited to 'searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp')
-rw-r--r-- | searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp index 1d3305d2c1a..ec75a0d6d06 100644 --- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp +++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp @@ -1041,7 +1041,6 @@ public: 100100.25, global_filter_lower_limit, 1.0); EXPECT_EQUAL(11u, bp->getState().estimate().estHits); - EXPECT_EQUAL(approximate, bp->may_approximate()); EXPECT_EQUAL(100100.25 * 100100.25, bp->get_distance_threshold()); return bp; } @@ -1068,7 +1067,6 @@ TEST_F("NN blueprint handles empty filter", NearestNeighborBlueprintFixture) auto empty_filter = GlobalFilter::create(); bp->set_global_filter(*empty_filter); EXPECT_EQUAL(3u, bp->getState().estimate().estHits); - EXPECT_TRUE(bp->may_approximate()); EXPECT_EQUAL(NNBA::INDEX_TOP_K, bp->get_algorithm()); } @@ -1081,7 +1079,6 @@ TEST_F("NN blueprint handles strong filter", NearestNeighborBlueprintFixture) auto strong_filter = GlobalFilter::create(std::move(filter)); bp->set_global_filter(*strong_filter); EXPECT_EQUAL(1u, bp->getState().estimate().estHits); - EXPECT_TRUE(bp->may_approximate()); EXPECT_EQUAL(NNBA::INDEX_TOP_K_WITH_FILTER, bp->get_algorithm()); } @@ -1099,7 +1096,6 @@ TEST_F("NN blueprint handles weak filter", NearestNeighborBlueprintFixture) auto weak_filter = GlobalFilter::create(std::move(filter)); bp->set_global_filter(*weak_filter); EXPECT_EQUAL(3u, bp->getState().estimate().estHits); - EXPECT_TRUE(bp->may_approximate()); EXPECT_EQUAL(NNBA::INDEX_TOP_K_WITH_FILTER, bp->get_algorithm()); } @@ -1112,7 +1108,6 @@ TEST_F("NN blueprint handles strong filter triggering brute force search", Neare auto strong_filter = GlobalFilter::create(std::move(filter)); bp->set_global_filter(*strong_filter); EXPECT_EQUAL(11u, bp->getState().estimate().estHits); - EXPECT_FALSE(bp->may_approximate()); EXPECT_EQUAL(NNBA::BRUTE_FORCE_FALLBACK, bp->get_algorithm()); } |