code: public void sendWithBulkProcessor(List<? extends Map<String, ?>> bulkSource,
              String index, String type) {
          sendWithBulkProcessor(bulkSource.stream().map(
                  source -> buildIndexRequest(index, type, null).source(source))
                  .collect(toList()));
      }
docs: Send with bulk processor.
  
  @param bulkSource the bulk source
  @param index      the index
  @param type       the type