diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-12 19:09:19 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-12 19:09:19 +0100 |
commit | 4c6256f041311352eaae8af9dd0bcadbd2ece89a (patch) | |
tree | 38712e47cc496ba2b6b6ff71ef8563a4677ef102 /config-model/src/main/java/com/yahoo/schema/derived | |
parent | a6827b11b0c79eb61a69b48a2cd2a313b31d590d (diff) |
Control the use of thread bundles for fetch postings with a feature flag
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/derived')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java b/config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java index 8090344ea8c..dad39e74c37 100644 --- a/config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java +++ b/config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java @@ -173,6 +173,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer { private final boolean alwaysMarkPhraseExpensive; private final boolean createPostinglistWhenNonStrict; private final boolean useEstimateForFetchPostings; + private final boolean useThreadBundleForFetchPostings; /** * The rank type definitions used to derive settings for the native rank features @@ -217,6 +218,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer { alwaysMarkPhraseExpensive = deployProperties.featureFlags().alwaysMarkPhraseExpensive(); createPostinglistWhenNonStrict = deployProperties.featureFlags().createPostinglistWhenNonStrict(); useEstimateForFetchPostings = deployProperties.featureFlags().useEstimateForFetchPostings(); + useThreadBundleForFetchPostings = deployProperties.featureFlags().useThreadBundleForFetchPostings(); postFilterThreshold = compiled.getPostFilterThreshold(); approximateThreshold = compiled.getApproximateThreshold(); targetHitsMaxAdjustmentFactor = compiled.getTargetHitsMaxAdjustmentFactor(); @@ -476,6 +478,9 @@ public class RawRankProfile implements RankProfilesConfig.Producer { if (useEstimateForFetchPostings) { properties.add(new Pair<>("vespa.matching.use_estimate_for_fetch_postings", String.valueOf(useEstimateForFetchPostings))); } + if (useThreadBundleForFetchPostings) { + properties.add(new Pair<>("vespa.matching.use_thread_bundle_for_fetch_postings", String.valueOf(useThreadBundleForFetchPostings))); + } if (postFilterThreshold.isPresent()) { properties.add(new Pair<>("vespa.matching.global_filter.upper_limit", String.valueOf(postFilterThreshold.getAsDouble()))); } |