diff options
author | Bjørn Christian Seime <bjorncs@yahoo-inc.com> | 2017-03-23 15:02:19 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahoo-inc.com> | 2017-03-27 11:17:05 +0200 |
commit | 9bec901bd604fcaa8f0443cf9e89448ed6facdbe (patch) | |
tree | ca12ae85a56cb7d8017d106a4edae4e4afec6d78 /config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java | |
parent | 68ae183a62a67df17fafc0e98a1bfbc3cacbaeba (diff) |
Improve name of methods exposing fields in Search
Introduce new concept called 'concrete' fields which consists of all
document and extra fields. Change concept of 'all' fields to also
include 'imported' fields in addition to 'concrete' fields.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java b/config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java index c5fb2d1a014..93e7f793a25 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/processing/AttributeProperties.java @@ -21,7 +21,7 @@ public class AttributeProperties extends Processor { @Override public void process() { - for (SDField field : search.allFieldsList()) { + for (SDField field : search.allConcreteFields()) { String fieldName = field.getName(); // For each attribute, check if the attribute has been created @@ -32,7 +32,7 @@ public class AttributeProperties extends Processor { } // Check other fields or statements that may have created this attribute. boolean created = false; - for (SDField f : search.allFieldsList()) { + for (SDField f : search.allConcreteFields()) { // Checking against the field we are looking at if (!f.getName().equals(fieldName)) { if (attributeCreated(f, attribute.getName())) { |