aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-12-12 19:09:19 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2023-12-12 19:09:19 +0100
commit4c6256f041311352eaae8af9dd0bcadbd2ece89a (patch)
tree38712e47cc496ba2b6b6ff71ef8563a4677ef102 /config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java
parenta6827b11b0c79eb61a69b48a2cd2a313b31d590d (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/RawRankProfile.java')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/derived/RawRankProfile.java5
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())));
}