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.javaindex 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<Stripublic 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<Stripublic 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();}};}