diff options
author | Geir Storli <geirst@oath.com> | 2018-06-05 16:35:28 +0200 |
---|---|---|
committer | Geir Storli <geirst@oath.com> | 2018-06-05 16:35:28 +0200 |
commit | e679cfae1c200a230de880eeb0855c5733ffa1a7 (patch) | |
tree | 1953adc9ca6eb798b8243558f30c1239d4ade575 /config-model | |
parent | 7ae7c6d9b3ff6f80ecfb4f70b9fc3ac351196f90 (diff) |
Remove remains of smart summary.
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/documentmodel/SummaryField.java | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/documentmodel/SummaryField.java b/config-model/src/main/java/com/yahoo/vespa/documentmodel/SummaryField.java index a1990a210db..049c1f1318b 100644 --- a/config-model/src/main/java/com/yahoo/vespa/documentmodel/SummaryField.java +++ b/config-model/src/main/java/com/yahoo/vespa/documentmodel/SummaryField.java @@ -18,37 +18,19 @@ import static com.yahoo.text.Lowercase.toLowerCase; public class SummaryField extends Field implements Cloneable, TypedKey { /** - * This class represents a source (field name) and the type of the source (only used for smart summary) + * This class represents a source (field name). */ public static class Source implements Serializable { - public enum Type { - CONTEXTUAL("contextual"), - TITLE("title"), - STATIC("static"), - URL("url"); - private final String name; - Type(String name) { - this.name = name; - } - public String getName() { return name; } - } private String name; - private Type type; private boolean override = false; public Source(String name) { this.name = name; - this.type = Type.CONTEXTUAL; - } - public Source(String name, Type type) { - this.name = name; - this.type = type; } public String getName() { return name; } - public Type getType() { return type; } public void setOverride(boolean override) { this.override = override; } public boolean getOverride() { return override; } public int hashCode() { - return name.hashCode() + type.getName().hashCode() + Boolean.valueOf(override).hashCode(); + return name.hashCode() + Boolean.valueOf(override).hashCode(); } public boolean equals(Object obj) { if (!(obj instanceof Source)) { @@ -56,7 +38,6 @@ public class SummaryField extends Field implements Cloneable, TypedKey { } Source other = (Source)obj; return name.equals(other.name) && - type.getName().equals(other.type.getName()) && override == other.override; } public String toString() { |