tests: improve SolrInputDocument.toString for debugging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1291066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-02-19 21:39:37 +00:00
parent a519b630ee
commit ecc836d028
2 changed files with 2 additions and 2 deletions
solr/solrj/src/java/org/apache/solr/common

View File

@ -179,7 +179,7 @@ public class SolrInputDocument implements Map<String,SolrInputField>, Iterable<S
@Override
public String toString()
{
return "SolrInputDocument["+_fields+"]";
return "SolrInputDocument{" + _fields.values() + "}";
}

View File

@ -197,6 +197,6 @@ public class SolrInputField implements Iterable<Object>, Serializable
@Override
public String toString()
{
return name + "("+boost+")={" + value + "}";
return name + ((boost == 1.0) ? "=" : ("("+boost+")=")) + value;
}
}