summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-12 21:02:34 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2021-04-12 21:02:34 +0200
commite1c94b8cf8b73831fc18924901e8da34b3a7789e (patch)
tree8f189b1377435498e41407c02ee41e87631d26d7 /config-model
parentf9c48dbeeaae4318226d3661591690790d085999 (diff)
Add comment and copyright.
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/document/Case.java6
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/document/SDField.java6
2 files changed, 9 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/document/Case.java b/config-model/src/main/java/com/yahoo/searchdefinition/document/Case.java
index cb56b343a86..0fbee339b97 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/document/Case.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/document/Case.java
@@ -1,5 +1,11 @@
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document;
+/**
+ * Describes if items should preserve lower/upper case, or shall be uncased
+ * which normally mean they are all normalized to lowercase.
+ * @author baldersheim
+ */
public enum Case {
CASED("cased"),
UNCASED("uncased");
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/document/SDField.java b/config-model/src/main/java/com/yahoo/searchdefinition/document/SDField.java
index 7d87caa68e7..cf7bef654b0 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/document/SDField.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/document/SDField.java
@@ -549,7 +549,7 @@ public class SDField extends Field implements TypedKey, FieldOperationContainer,
* Set the matching type for this field and all subfields.
*/
// TODO: When this is not the same as getMatching().setthis we have a potential for inconsistency. Find the right
- // Matching object for struct fields as lookup time instead.
+ // Matching object for struct fields at lookup time instead.
public void setMatchingType(Matching.Type type) {
this.getMatching().setType(type);
for (SDField structField : getStructFields()) {
@@ -561,7 +561,7 @@ public class SDField extends Field implements TypedKey, FieldOperationContainer,
* Set the matching type for this field and all subfields.
*/
// TODO: When this is not the same as getMatching().setthis we have a potential for inconsistency. Find the right
- // Matching object for struct fields as lookup time instead.
+ // Matching object for struct fields at lookup time instead.
public void setMatchingCase(Case casing) {
this.getMatching().setCase(casing);
for (SDField structField : getStructFields()) {
@@ -572,7 +572,7 @@ public class SDField extends Field implements TypedKey, FieldOperationContainer,
* Set matching algorithm for this field and all subfields.
*/
// TODO: When this is not the same as getMatching().setthis we have a potential for inconsistency. Find the right
- // Matching object for struct fields as lookup time instead.
+ // Matching object for struct fields at lookup time instead.
public void setMatchingAlgorithm(Matching.Algorithm algorithm) {
this.getMatching().setAlgorithm(algorithm);
for (SDField structField : getStructFields()) {