diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-09 18:36:21 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-09 18:36:21 +0000 |
commit | bb565352a9126272451b9b3cf5679d98b1f47536 (patch) | |
tree | 23ab2ff7dd2ce48196ac69162b54812d0affaf26 /searchcore/src/tests/proton/matching | |
parent | e0dbf168c3080049e8d000bd175ace44b08f8e35 (diff) |
Propagate DocumentMetaStore read gaurd to RequestContext.
Diffstat (limited to 'searchcore/src/tests/proton/matching')
-rw-r--r-- | searchcore/src/tests/proton/matching/matching_test.cpp | 4 | ||||
-rw-r--r-- | searchcore/src/tests/proton/matching/request_context/request_context_test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp index d5241f7d65b..bce9694cd58 100644 --- a/searchcore/src/tests/proton/matching/matching_test.cpp +++ b/searchcore/src/tests/proton/matching/matching_test.cpp @@ -377,7 +377,7 @@ struct MyWorld { void verify_diversity_filter(const SearchRequest & req, bool expectDiverse) { Matcher::SP matcher = createMatcher(); search::fef::Properties overrides; - auto mtf = matcher->create_match_tools_factory(req, searchContext, attributeContext, metaStore, overrides, ttb(), true); + auto mtf = matcher->create_match_tools_factory(req, searchContext, attributeContext, metaStore, overrides, ttb(), nullptr, true); auto diversity = mtf->createDiversifier(HeapSize::lookup(config)); EXPECT_EQUAL(expectDiverse, static_cast<bool>(diversity)); } @@ -387,7 +387,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, ttb(), true); + *request, searchContext, attributeContext, metaStore, overrides, ttb(), nullptr, true); MatchTools::UP match_tools = match_tools_factory->createMatchTools(); match_tools->setup_first_phase(nullptr); return match_tools->match_data().get_termwise_limit(); diff --git a/searchcore/src/tests/proton/matching/request_context/request_context_test.cpp b/searchcore/src/tests/proton/matching/request_context/request_context_test.cpp index 3e74ed152b1..96cdba4c2d6 100644 --- a/searchcore/src/tests/proton/matching/request_context/request_context_test.cpp +++ b/searchcore/src/tests/proton/matching/request_context/request_context_test.cpp @@ -55,7 +55,7 @@ public: _attr_ctx(), _index_env(), _query_env(&_index_env), - _request_ctx(_doom, _attr_ctx, _query_env, _query_env.getObjectStore(), AttributeBlueprintParams()), + _request_ctx(_doom, _attr_ctx, _query_env, _query_env.getObjectStore(), AttributeBlueprintParams(), nullptr), _query_tensor(SimpleValue::from_spec(TensorSpec("tensor(x[2])") .add({{"x", 0}}, 3).add({{"x", 1}}, 5))) { |