diff options
author | Jon Bratseth <bratseth@oath.com> | 2020-03-04 08:30:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 08:30:15 +0100 |
commit | a347208cb7d5713d9b8035a26d2a04d9ba7b140b (patch) | |
tree | 19bd73a4e92de9e09d3651db995e916ce5a6cf7f /configserver | |
parent | e8c716e4466e5210a6778eb322b4de81a6f7a10d (diff) | |
parent | 1e6522311c436bde6e3151b83fbacadc137b9b42 (diff) |
Merge pull request #12412 from vespa-engine/bratseth/phrase-segmenting-feature-flag-take-3
Bratseth/phrase segmenting feature flag take 3
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java index 829a59a9598..a15b570a55d 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java @@ -135,6 +135,7 @@ public class ModelContextImpl implements ModelContext { private final double defaultTermwiseLimit; private final boolean useBucketSpaceMetric; private final boolean useNewAthenzFilter; + private final boolean usePhraseSegmenting; public Properties(ApplicationId applicationId, boolean multitenantFromConfig, @@ -169,6 +170,8 @@ public class ModelContextImpl implements ModelContext { .with(FetchVector.Dimension.APPLICATION_ID, applicationId.serializedForm()).value(); this.useNewAthenzFilter = Flags.USE_NEW_ATHENZ_FILTER.bindTo(flagSource) .with(FetchVector.Dimension.APPLICATION_ID, applicationId.serializedForm()).value(); + this.usePhraseSegmenting = Flags.PHRASE_SEGMENTING.bindTo(flagSource) + .with(FetchVector.Dimension.APPLICATION_ID, applicationId.serializedForm()).value(); } @Override @@ -223,7 +226,12 @@ public class ModelContextImpl implements ModelContext { @Override public boolean useBucketSpaceMetric() { return useBucketSpaceMetric; } - @Override public boolean useNewAthenzFilter() { return useNewAthenzFilter; } + @Override + public boolean useNewAthenzFilter() { return useNewAthenzFilter; } + + @Override + public boolean usePhraseSegmenting() { return usePhraseSegmenting; } + } } |