diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-06 10:42:48 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-06 10:42:48 +0100 |
commit | ff4825c7d9c1e367ebd561fb83872ea757c5592c (patch) | |
tree | 41af906c33f27d143d18b5814c225b73f6168ec6 /config-model/src | |
parent | 0754f11f6bb14b209e7739c5c1af44f23bc67743 (diff) |
Add use-estimate-for-fetch-postings feature flag
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 411e754f3ef..8090344ea8c 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 @@ -172,6 +172,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer { private final double rankScoreDropLimit; private final boolean alwaysMarkPhraseExpensive; private final boolean createPostinglistWhenNonStrict; + private final boolean useEstimateForFetchPostings; /** * The rank type definitions used to derive settings for the native rank features @@ -215,6 +216,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer { termwiseLimit = compiled.getTermwiseLimit().orElse(deployProperties.featureFlags().defaultTermwiseLimit()); alwaysMarkPhraseExpensive = deployProperties.featureFlags().alwaysMarkPhraseExpensive(); createPostinglistWhenNonStrict = deployProperties.featureFlags().createPostinglistWhenNonStrict(); + useEstimateForFetchPostings = deployProperties.featureFlags().useEstimateForFetchPostings(); postFilterThreshold = compiled.getPostFilterThreshold(); approximateThreshold = compiled.getApproximateThreshold(); targetHitsMaxAdjustmentFactor = compiled.getTargetHitsMaxAdjustmentFactor(); @@ -471,6 +473,9 @@ public class RawRankProfile implements RankProfilesConfig.Producer { if ( ! createPostinglistWhenNonStrict) { properties.add(new Pair<>("vespa.matching.create_postinglist_when_non_strict", String.valueOf(createPostinglistWhenNonStrict))); } + if (useEstimateForFetchPostings) { + properties.add(new Pair<>("vespa.matching.use_estimate_for_fetch_postings", String.valueOf(useEstimateForFetchPostings))); + } if (postFilterThreshold.isPresent()) { properties.add(new Pair<>("vespa.matching.global_filter.upper_limit", String.valueOf(postFilterThreshold.getAsDouble()))); } |