docs: static void addDocuments(SolrClient client, List<SolrInputDocument> documents, boolean commit)
      throws IOException, SolrServerException {
  
          if ((null == client) || (null == documents)) {
              return;
          }
  
          if (!documents.isEmpty()) {
              client.add(documents);
          }
  
          if (commit) {
              client.commit();
          }
      }