diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-02-08 11:35:09 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-02-08 11:35:09 +0100 |
commit | ad3b8a05ccc2d0ece6f6cf93e9347fbaa84e1476 (patch) | |
tree | 5c579e641e3f9628c18c7222ca12000234882a19 /container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java | |
parent | fdae546b833532aac0a2f49400ccf15071549c6b (diff) |
Revert "Revert "Bratseth/presentation format tensors""
This reverts commit 154c8837f1ca166816d289db82fed90baca72e54.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java b/container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java index 1d6f584bfaa..a0f38f61672 100644 --- a/container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java +++ b/container-search/src/main/java/com/yahoo/search/query/profile/types/FieldDescription.java @@ -81,7 +81,7 @@ public class FieldDescription implements Comparable<FieldDescription> { /** * Creates a field description * - * @param name the name of the field + * @param name the name of the field, empty means it describes the value held by the query profile itself * @param type the type of the field represented as a string - see {@link com.yahoo.search.query.profile.types.FieldType} * @param aliases a list of aliases, never null. Aliases are not following dotted * (meaning they are global, not that they cannot contain dots) and are case insensitive. @@ -89,8 +89,6 @@ public class FieldDescription implements Comparable<FieldDescription> { * @param overridable whether this can be overridden when first set in a profile. Default: true */ public FieldDescription(CompoundName name, FieldType type, List<String> aliases, boolean mandatory, boolean overridable) { - if (name.isEmpty()) - throw new IllegalArgumentException("Illegal name ''"); for (String nameComponent : name.asList()) QueryProfile.validateName(nameComponent); this.name = name; |