summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2021-04-12 21:09:55 +0200
committerGitHub <noreply@github.com>2021-04-12 21:09:55 +0200
commita6bffc901b462bfc7545781a1e275c3e97057b8f (patch)
treecb12fce0333b8506ce525e317eaaf6184f788fe4
parent392f97645f7ed1a0be5734bc539659c9e00a7edf (diff)
parente1c94b8cf8b73831fc18924901e8da34b3a7789e (diff)
Merge pull request #17386 from vespa-engine/balder/add-comment-and-copyright
Add comment and copyright.
-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()) {