public UpdateRequest add(final SolrInputDocument doc){
  Objects.requireNonNull(doc,"Cannot add a null SolrInputDocument");
  if (documents == null) {
    documents=new LinkedHashMap<>();
  }
  documents.put(doc,null);
  return this;
}

public UpdateRequest add ( final SolrInputDocument doc ) { Objects . requireNonNull ( doc , "Cannot add a null SolrInputDocument" ) ; if ( documents == null ) { documents = new LinkedHashMap < > ( ) ; } documents . put ( doc , null ) ; return this ; }
add a solrinputdocument to this request
