code: public UpdateResponse upsertData(String jsonSource, String index,
              String type, String id) {
          return upsertQuery(buildPrepareUpsert(index, type, id, jsonSource));
      }
docs: Upsert data update response.
  
  @param jsonSource the json source
  @param index      the index
  @param type       the type
  @param id         the id
  @return the update response