question: public static String jsonAdd ( SolrInputDocument ... docs ) { CharArr out = new CharArr ( ) ; try { out . append ( '[' ) ; boolean firstField = true ; for ( SolrInputDocument doc : docs ) { if ( firstField ) firstField = false ; else out . append ( ',' ) ; out . append ( json ( doc ) ) ; } out . append ( ']' ) ; } catch ( IOException e ) { } return out . toString ( ) ; }
target:  Creates a JSON add command from a SolrInputDocument list.  Doesn't currently handle boosts. 