Skip to content

Apache Lucene open-source search software

SOLR-1349: toString() for SolrDocument Map views

Yonik Seeleyd880e90b1b85
diff --git a/src/common/org/apache/solr/common/SolrDocument.java b/src/common/org/apache/solr/common/SolrDocument.java
index 741955b82a7..48d66878ca5 100644
--- a/src/common/org/apache/solr/common/SolrDocument.java
+++ b/src/common/org/apache/solr/common/SolrDocument.java
@@ -219,7 +219,8 @@ public class SolrDocument implements Map<String,Object>, Iterable<Map.Entry<Stri
public void putAll(Map<? extends String, ? extends Collection<Object>> t) {throw new UnsupportedOperationException();}
public Collection<Collection<Object>> values() {throw new UnsupportedOperationException();}
public Collection<Object> put(String key, Collection<Object> value) {throw new UnsupportedOperationException();}
- public Collection<Object> remove(Object key) {throw new UnsupportedOperationException();}
+ public Collection<Object> remove(Object key) {throw new UnsupportedOperationException();}
+ public String toString() {return _fields.toString();}
};
}
@@ -247,6 +248,7 @@ public class SolrDocument implements Map<String,Object>, Iterable<Map.Entry<Stri
public Collection<Object> values() {throw new UnsupportedOperationException();}
public Collection<Object> put(String key, Object value) {throw new UnsupportedOperationException();}
public Collection<Object> remove(Object key) {throw new UnsupportedOperationException();}
+ public String toString() {return _fields.toString();}
};
}