code: public boolean createOrUpdateData(String indexName, String type, String id, Object obj) {
          IndexResponse response = getClient().prepareIndex(indexName, type).setId(id).setSource(Lang.obj2map(obj)).execute().actionGet();
          return response.getResult() == DocWriteResponse.Result.CREATED || response.getResult() == DocWriteResponse.Result.UPDATED;
      }
docs: 创建或更新文档
  
  @param indexName 索引名
  @param type      数据类型(表名)
  @param id        主键
  @param obj       对象
  @return