Apache Solr open-source search software
tests: improve SolrInputDocument.toString for debugging
Yonik Seeleyecc836d028a3
diff --git a/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java b/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.javaindex 0032fcfe21f..9c829cc726a 100644--- a/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java+++ b/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java@@ -179,7 +179,7 @@ public class SolrInputDocument implements Map<String,SolrInputField>, Iterable<S@Overridepublic String toString(){- return "SolrInputDocument["+_fields+"]";+ return "SolrInputDocument{" + _fields.values() + "}";}diff --git a/solr/solrj/src/java/org/apache/solr/common/SolrInputField.java b/solr/solrj/src/java/org/apache/solr/common/SolrInputField.javaindex 02c87f9203d..2828e37a4b3 100644--- a/solr/solrj/src/java/org/apache/solr/common/SolrInputField.java+++ b/solr/solrj/src/java/org/apache/solr/common/SolrInputField.java@@ -197,6 +197,6 @@ public class SolrInputField implements Iterable<Object>, Serializable@Overridepublic String toString(){- return name + "("+boost+")={" + value + "}";+ return name + ((boost == 1.0) ? "=" : ("("+boost+")=")) + value;}}