sequence/xjoin/src/main/java/org/apache/solr/search/xjoin/XJoinValueSourceParser.java
// as a last resort, try to parse toString()
as a last resort, try to parse toString()
as a last resort try to parse toString ()
private double convertFieldValue(Object object) {
      if (object == null) {
        return fieldDefaultValue;
      }
      if (object instanceof Double) {
        return (Double)object;
      }
      if (object instanceof Float) {
        return (Float)object;
      }
      if (object instanceof Integer) {
        return (Integer)object;
      }
      return Double.valueOf(object.toString());
    }
private double convertFieldValue ( Object object ) { if ( object == null ) { return fieldDefaultValue ; } if ( object instanceof Double ) { return ( Double ) object ; } if ( object instanceof Float ) { return ( Float ) object ; } if ( object instanceof Integer ) { return ( Integer ) object ; } return Double . valueOf ( object . toString ( ) ) ; }
as a last resort, try to parse toString()
as a last resort try to parse toString ()