code: public void index(String indexName, String indexType, Map<CharSequence, CharSequence> idJsonMap) {
          index(
                  idJsonMap.entrySet().stream()
                          .map(entry -> new IndexRequest.IndexRequestBuilder(indexName, indexType, entry.getValue().toString())
                                  .withId(entry.getKey().toString()).build()
                          )
                          .collect(toList())
          );
      }
docs: Index documents
  
  @param indexName target index
  @param indexType target index type
  @param idJsonMap map where keys are documents ids and values are documents represented as JSON