summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests
diff options
context:
space:
mode:
authorArne H Juul <arnej27959@users.noreply.github.com>2021-03-29 08:24:26 +0200
committerGitHub <noreply@github.com>2021-03-29 08:24:26 +0200
commitac157c24c794028a1cdc446778e138fdc90ac918 (patch)
tree422d454dc15cad2b411dff864d00927491467935 /searchcore/src/tests
parente388abbe966766dfaae68bb6bf48a018c1098d77 (diff)
parent81b7e6280bf4cf4d1e0a335bf46306bc1c866e45 (diff)
Merge pull request #17175 from vespa-engine/havardpe/do-not-handle-global-filter-when-docsum-fetching
add 'is_search' flag when creating match tools factory
Diffstat (limited to 'searchcore/src/tests')
-rw-r--r--searchcore/src/tests/proton/matching/matching_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp
index f68e4956e15..8057dbf2da6 100644
--- a/searchcore/src/tests/proton/matching/matching_test.cpp
+++ b/searchcore/src/tests/proton/matching/matching_test.cpp
@@ -299,7 +299,7 @@ struct MyWorld {
void verify_diversity_filter(SearchRequest::SP req, bool expectDiverse) {
Matcher::SP matcher = createMatcher();
search::fef::Properties overrides;
- auto mtf = matcher->create_match_tools_factory(*req, searchContext, attributeContext, metaStore, overrides);
+ auto mtf = matcher->create_match_tools_factory(*req, searchContext, attributeContext, metaStore, overrides, true);
auto diversity = mtf->createDiversifier(HeapSize::lookup(config));
EXPECT_EQUAL(expectDiverse, static_cast<bool>(diversity));
}
@@ -309,7 +309,7 @@ struct MyWorld {
SearchRequest::SP request = createSimpleRequest("f1", "spread");
search::fef::Properties overrides;
MatchToolsFactory::UP match_tools_factory = matcher->create_match_tools_factory(
- *request, searchContext, attributeContext, metaStore, overrides);
+ *request, searchContext, attributeContext, metaStore, overrides, true);
MatchTools::UP match_tools = match_tools_factory->createMatchTools();
match_tools->setup_first_phase();
return match_tools->match_data().get_termwise_limit();