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();
}

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 ( ) ; }
creates a json add command from a solrinputdocument list . doesn ' t currently handle boosts .
