diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2020-03-03 11:25:39 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2020-03-03 11:25:39 +0100 |
commit | a277132980a9bf55e705bb72f079f11d48fbf030 (patch) | |
tree | 56426d0ee8702393718440da747ae39b78cec9ad /configserver | |
parent | be75fa67a640d2c3a71536dca1253637d8dce708 (diff) |
Revert "Revert "Bratseth/phrase segmenting feature flag""
This reverts commit c72315a338a02858c8371d3d70fe091c43b672dd.
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; } + } } |