aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/derived
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-01-11 22:33:34 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2024-01-11 22:33:34 +0100
commit2c132b3f907ebfe733f04d92c09758a3160375ec (patch)
tree530b626d7de0518ac7a369583a3c44344209e39b /config-model/src/main/java/com/yahoo/schema/derived
parent84684afff128e90365b7d759c88bc11a7caaec72 (diff)
Unify behavior of attribute matching over streaming and indexed.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/derived')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/derived/VsmFields.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/derived/VsmFields.java b/config-model/src/main/java/com/yahoo/schema/derived/VsmFields.java
index 564161b725d..f05f8b17762 100644
--- a/config-model/src/main/java/com/yahoo/schema/derived/VsmFields.java
+++ b/config-model/src/main/java/com/yahoo/schema/derived/VsmFields.java
@@ -264,6 +264,7 @@ public class VsmFields extends Derived implements VsmfieldsConfig.Producer {
private static VsmfieldsConfig.Fieldspec.Normalize.Enum toNormalize(Matching matching) {
if (matching.getType() == MatchType.EXACT) return VsmfieldsConfig.Fieldspec.Normalize.Enum.LOWERCASE;
+ if (matching.getType() == MatchType.WORD) return VsmfieldsConfig.Fieldspec.Normalize.Enum.LOWERCASE;
if (matching.getCase() == Case.CASED) return VsmfieldsConfig.Fieldspec.Normalize.Enum.NONE;
return VsmfieldsConfig.Fieldspec.Normalize.LOWERCASE_AND_FOLD;
}