diff options
author | Geir Storli <geirst@verizonmedia.com> | 2021-01-06 14:39:59 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2021-01-06 14:39:59 +0000 |
commit | 2654f13348b074548dddb4f36f18619034f1fe9a (patch) | |
tree | e09c1031913fff59603b67d1c872031b2d06ed41 /config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java | |
parent | a51bcc4ec12dcdaba2c9937929e3fa3b4300623b (diff) |
Make validation of struct field attributes reflect reality.
E.g. a nested array of struct field cannot be specified as a struct field attribute.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java b/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java index 7f92e676118..45828db92a5 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java @@ -37,6 +37,14 @@ public interface ImmutableSDField { boolean usesStructOrMap(); + /** + * Whether this field at some time was configured to do attributing. + * + * This function can typically return a different value than doesAttributing(), + * which uses the final state of the underlying indexing script instead. + */ + boolean wasConfiguredToDoAttributing(); + DataType getDataType(); Index getIndex(String name); |