diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-13 16:02:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 16:02:47 +0100 |
commit | 1e07133311d2fcd31b929552281f757768c5c099 (patch) | |
tree | 8e252ac2ef2951689b36fd671df351f45f748edb /config-model/src | |
parent | 359a02474b6e55694b81bc2da05aaa0e920256ca (diff) | |
parent | 7a349bf804a959bdb4fbcfc92a588014d298a3c3 (diff) |
Merge pull request #29630 from vespa-engine/balder/use-thread-bundle-for-range-fetchpostings
Balder/use thread bundle for range fetchpostings
Diffstat (limited to 'config-model/src')
-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()))); } |