code: public String addDocument(String indexName, String indexType, Object params,ClientOptions clientOptions) throws ElasticSearchException{
  		if(params instanceof Map){
  			return addMapDocument(indexName,indexType,(Map)params,clientOptions);
  		}
  		Object docId = null;
  		Object parentId = null;
  		Object routing = null;
  		String refreshOption = null;
  		if(clientOptions != null) {
  			refreshOption = clientOptions.getRefreshOption();
  			ClassUtil.ClassInfo beanClassInfo = ClassUtil.getClassInfo(params.getClass());
  			docId = clientOptions.getIdField() != null ? BuildTool.getId(params, beanClassInfo, clientOptions.getIdField()) : null;
  			parentId = clientOptions.getParentIdField() != null ? BuildTool.getParentId(params, beanClassInfo, clientOptions.getParentIdField()) : null;
  			routing = clientOptions.getRountField() != null ? BuildTool.getRouting(params, beanClassInfo, clientOptions.getRountField()) : null;
  		}
  		return addDocument(  indexName,   indexType,   params,  docId,  parentId,  routing,  refreshOption);
  	}
docs: 创建或者更新索引文档
  @param indexName
  @param indexType
  @param params
  @return
  @throws ElasticSearchException