summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-12-04 16:37:06 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2023-12-04 16:37:06 +0100
commit1de64cae5afdc988b7b869bb2c16ef9490d590eb (patch)
treee0f47cc367984531a4f05ce3ff151c92dcbc0a5d /config-model
parent989b472666ae79b9d55adcec85833ab17b9dc942 (diff)
Control creation of temporary postinglist for non strict iterators with feature flag.
Diffstat (limited to 'config-model')
-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 6a1ebb39ac8..eebcc319d3f 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
@@ -171,6 +171,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer {
private final OptionalDouble targetHitsMaxAdjustmentFactor;
private final double rankScoreDropLimit;
private final boolean alwaysMarkPhraseExpensive;
+ private final boolean createPostinhlistWhenNonStrict;
/**
* The rank type definitions used to derive settings for the native rank features
@@ -213,6 +214,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer {
numSearchPartitions = compiled.getNumSearchPartitions();
termwiseLimit = compiled.getTermwiseLimit().orElse(deployProperties.featureFlags().defaultTermwiseLimit());
alwaysMarkPhraseExpensive = deployProperties.featureFlags().alwaysMarkPhraseExpensive();
+ createPostinhlistWhenNonStrict = deployProperties.featureFlags().createPostinglistWhenNonStrict();
postFilterThreshold = compiled.getPostFilterThreshold();
approximateThreshold = compiled.getApproximateThreshold();
targetHitsMaxAdjustmentFactor = compiled.getTargetHitsMaxAdjustmentFactor();
@@ -466,6 +468,9 @@ public class RawRankProfile implements RankProfilesConfig.Producer {
if (alwaysMarkPhraseExpensive) {
properties.add(new Pair<>("vespa.matching.always_mark_phrase_expensive", String.valueOf(alwaysMarkPhraseExpensive)));
}
+ if (createPostinhlistWhenNonStrict) {
+ properties.add(new Pair<>("vespa.matching.create_postinglist_when_non_strict", String.valueOf(createPostinhlistWhenNonStrict)));
+ }
if (postFilterThreshold.isPresent()) {
properties.add(new Pair<>("vespa.matching.global_filter.upper_limit", String.valueOf(postFilterThreshold.getAsDouble())));
}