diff options
author | Jon Bratseth <bratseth@gmail.com> | 2020-06-24 15:47:51 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2020-06-24 15:50:48 +0200 |
commit | b4a8a1555fd5693c54a3fd71fce1666ee87be0bf (patch) | |
tree | 7a5d0ed4479f7c31b5b86279ca532320c70da6cb /document | |
parent | 6821733667528dddeed658205358f6b9dda12090 (diff) |
Handle an existing spantree in exactmatch
This may happen if a field which is indexed is used as an input for another
field indexed as exact match.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/main/java/com/yahoo/document/annotation/SpanTree.java | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/document/src/main/java/com/yahoo/document/annotation/SpanTree.java b/document/src/main/java/com/yahoo/document/annotation/SpanTree.java index 05e5ff41cf1..9df45ab6c2e 100644 --- a/document/src/main/java/com/yahoo/document/annotation/SpanTree.java +++ b/document/src/main/java/com/yahoo/document/annotation/SpanTree.java @@ -25,7 +25,7 @@ import java.util.Map; * A SpanTree holds a root node of a tree of SpanNodes, and a List of Annotations pointing to these nodes * or each other. It also has a name. * - * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a> + * @author Einar M R Rosenvinge * @see com.yahoo.document.annotation.SpanNode * @see com.yahoo.document.annotation.Annotation */ @@ -39,8 +39,7 @@ public class SpanTree implements Iterable<Annotation>, SpanNodeParent, Comparabl /** * WARNING! Only to be used by deserializers! Creates an empty SpanTree instance. */ - public SpanTree() { - } + public SpanTree() { } /** * Creates a new SpanTree with a given root node. @@ -227,18 +226,12 @@ public class SpanTree implements Iterable<Annotation>, SpanNodeParent, Comparabl root.setParent(this); } - /** - * Returns the name of this span tree. - * @return the name of this span tree. - */ + /** Returns the name of this span tree. */ public String getName() { return name; } - /** - * Returns the root node of this span tree. - * @return the root node of this span tree. - */ + /** Returns the root node of this span tree. */ public SpanNode getRoot() { return root; } |