diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/query/Item.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/query/Item.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/query/Item.java b/container-search/src/main/java/com/yahoo/prelude/query/Item.java index e8b1580848d..47efed323a9 100644 --- a/container-search/src/main/java/com/yahoo/prelude/query/Item.java +++ b/container-search/src/main/java/com/yahoo/prelude/query/Item.java @@ -17,7 +17,9 @@ import java.util.Optional; /** * An item in the tree which defines which documents will match a query. * Item subclasses can be composed freely to create arbitrary complex matching trees. - * Items are in general mutable and not thread safe. Their identity is defined by their content + * Items are in general mutable and not thread safe. + * They can be deeply cloned by calling clone(). + * Their identity is defined by their content * (i.e the field value of two items decide if they are equal). * * @author bratseth |