diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-15 11:03:11 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-15 11:03:11 +0000 |
commit | 1e1ebc215480ab75e09f3cd7a016bbdf0831c423 (patch) | |
tree | 4781852ea529d7019c41c3c8bcc15f58ad38e6e9 /searchcore | |
parent | 684abb75b1967c2fa019d3454627ff95c3435aa8 (diff) |
- Add a doom that will not expire until it does not matter anymore.
- Doom can never be null.
- Wire doom into fillBitVector. Using it will be a separate PR.
Diffstat (limited to 'searchcore')
3 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/attribute_limiter.cpp b/searchcore/src/vespa/searchcore/proton/matching/attribute_limiter.cpp index a3d2a9b33d9..fe5f66a05a7 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/attribute_limiter.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/attribute_limiter.cpp @@ -101,7 +101,7 @@ AttributeLimiter::create_match_data(size_t want_hits, size_t max_group_size, dou _blueprint = _searchable_attributes.createBlueprint(_requestContext, field, node); //TODO use_estimate must be switched to true quite soon //TODO Use thread_bundle once verified(soon), _requestContext.thread_bundle() - auto execInfo = ExecuteInfo::create(strictSearch, strictSearch ? 1.0 : hit_rate, &_requestContext.getDoom(), + auto execInfo = ExecuteInfo::create(strictSearch, strictSearch ? 1.0 : hit_rate, _requestContext.getDoom(), vespalib::ThreadBundle::trivial(), true, false); _blueprint->fetchPostings(execInfo); _estimatedHits.store(_blueprint->getState().estimate().estHits, std::memory_order_relaxed); diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp index 920af030c74..68bda1eacbb 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp @@ -209,7 +209,7 @@ MatchToolsFactory(QueryLimiter & queryLimiter, bool create_postinglist_when_non_strict = CreatePostingListWhenNonStrict::check(_queryEnv.getProperties(), rankSetup.create_postinglist_when_non_strict()); bool use_estimate_for_fetch_postings = UseEstimateForFetchPostings::check(_queryEnv.getProperties(), rankSetup.use_estimate_for_fetch_postings()); bool use_thread_bundle_for_fetch_postings = UseThreadBundleForFetchPostings::check(_queryEnv.getProperties(), rankSetup.use_thread_bundle_for_fetch_postings()); - _query.fetchPostings(ExecuteInfo::create(is_search, hitRate, &_requestContext.getDoom(), + _query.fetchPostings(ExecuteInfo::create(is_search, hitRate, _requestContext.getDoom(), use_thread_bundle_for_fetch_postings ? thread_bundle : vespalib::ThreadBundle::trivial(), create_postinglist_when_non_strict, use_estimate_for_fetch_postings)); if (is_search) { diff --git a/searchcore/src/vespa/searchcore/proton/matching/query.cpp b/searchcore/src/vespa/searchcore/proton/matching/query.cpp index 027625a2a57..192be93d9b8 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/query.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/query.cpp @@ -226,7 +226,7 @@ Query::handle_global_filter(const IRequestContext & requestContext, uint32_t doc _blueprint = Blueprint::optimize(std::move(_blueprint)); LOG(debug, "blueprint after handle_global_filter:\n%s\n", _blueprint->asString().c_str()); // strictness may change if optimized order changed: - fetchPostings(ExecuteInfo::create(true, 1.0, &requestContext.getDoom(), requestContext.thread_bundle(), + fetchPostings(ExecuteInfo::create(true, 1.0, requestContext.getDoom(), requestContext.thread_bundle(), create_postinglist_when_non_strict, use_estimate_for_fetch_postings)); } |