code: public boolean deleteData(String indexName, String type, String id) {
          DeleteResponse response = getClient().prepareDelete().setIndex(indexName).setType(type).setId(id).execute().actionGet();
          return response.getResult() == DocWriteResponse.Result.DELETED;
      }
docs: 创建或更新文档
  
  @param indexName 索引名
  @param type      数据类型
  @param id        主键
  @return