aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-06-29 00:09:41 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2023-06-29 00:09:41 +0200
commit3de726b251320cb228c035e33a16576baac70f9e (patch)
tree4793753527224ebf71143a4c682f19d22da40a6c /config-model
parentf4912fbaab8eb0f0a195c116070c511d77f44776 (diff)
Add feature falg control of new nested multivalue grouping.
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 349fe1404ed..82c0c9d516a 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
@@ -154,6 +154,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer {
private final OptionalDouble postFilterThreshold;
private final OptionalDouble approximateThreshold;
private final double rankScoreDropLimit;
+ private final boolean enableNestedMultivalueGrouping;
/**
* The rank type definitions used to derive settings for the native rank features
@@ -193,6 +194,7 @@ public class RawRankProfile implements RankProfilesConfig.Producer {
minHitsPerThread = compiled.getMinHitsPerThread();
numSearchPartitions = compiled.getNumSearchPartitions();
termwiseLimit = compiled.getTermwiseLimit().orElse(deployProperties.featureFlags().defaultTermwiseLimit());
+ enableNestedMultivalueGrouping = deployProperties.featureFlags().enableNestedMultivalueGrouping();
postFilterThreshold = compiled.getPostFilterThreshold();
approximateThreshold = compiled.getApproximateThreshold();
keepRankCount = compiled.getKeepRankCount();
@@ -418,6 +420,9 @@ public class RawRankProfile implements RankProfilesConfig.Producer {
if (termwiseLimit < 1.0) {
properties.add(new Pair<>("vespa.matching.termwise_limit", termwiseLimit + ""));
}
+ if (enableNestedMultivalueGrouping) {
+ properties.add(new Pair<>("vespa.temporary.enable_nested_multivalue_grouping", String.valueOf(enableNestedMultivalueGrouping)));
+ }
if (postFilterThreshold.isPresent()) {
properties.add(new Pair<>("vespa.matching.global_filter.upper_limit", String.valueOf(postFilterThreshold.getAsDouble())));
}