code: public void sendWithBulkProcessor(IndexRequest indexRequest) {
          Optional.ofNullable(this.bulkProcessor)
                  .orElseGet(() -> setAndReturnBulkProcessor(BulkProcessor
                          .builder(jmESClient, bulkProcessorListener).build()))
                  .add(indexRequest);
      }
docs: Send with bulk processor.
  
  @param indexRequest the index request