@Deprecated
    public static SolrInputDocument toSolrInputDocument(SolrDocument d) {

        SolrInputDocument doc = new SolrInputDocument();
        d.getFieldNames().forEach(name -> doc.addField(name, d.getFieldValue(name)));
        return doc;
    }
@ Deprecated public static SolrInputDocument toSolrInputDocument ( SolrDocument d ) { SolrInputDocument doc = new SolrInputDocument ( ) ; d . getFieldNames ( ) . forEach ( name -> doc . addField ( name , d . getFieldValue ( name ) ) ) ; return doc ; }
@param d SolrDocument to convert
@return a SolrInputDocument with the same fields and values as the
SolrDocument.
@deprecated This method will be removed in Solr 6.0