mirror of https://github.com/apache/lucene.git
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:
parent
a519b630ee
commit
ecc836d028
solr/solrj/src/java/org/apache/solr/common
|
@ -179,7 +179,7 @@ public class SolrInputDocument implements Map<String,SolrInputField>, Iterable<S
|
|||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "SolrInputDocument["+_fields+"]";
|
||||
return "SolrInputDocument{" + _fields.values() + "}";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue