code: public   String addDocument(String indexName, String indexType,String addTemplate, Object bean,String refreshOption) throws ElasticSearchException{
  		StringBuilder builder = new StringBuilder();
  		ClassUtil.ClassInfo classInfo = ClassUtil.getClassInfo(bean.getClass());
  		Object id = BuildTool.getId(bean,classInfo);
  		Object routing = BuildTool.getRouting(bean,classInfo);
  
  		builder.append(indexName).append("/").append(indexType);
  		if(id != null){
  			builder.append("/").append(id);
  		}
  		Object parentId = BuildTool.getParentId(bean,classInfo);
  		if(refreshOption != null ){
  			builder.append("?").append(refreshOption);
  			if(parentId != null){
  				builder.append("&parent=").append(parentId);
  			}
  			if(routing != null){
  				builder.append("&routing=").append(routing);
  			}
  		}
  		else if(parentId != null){
  			builder.append("?parent=").append(parentId);
  			if(routing != null){
  				builder.append("&routing=").append(routing);
  			}
  		}
  		else if(routing != null){
  			builder.append("?routing=").append(routing);
  		}
  		String path = builder.toString();
  		builder.setLength(0);
  		path = this.client.executeHttp(path,ESTemplateHelper.evalDocumentTemplate(esUtil,builder,indexType,indexName,addTemplate,bean,"create"),ClientUtil.HTTP_POST);
  		builder = null;
  		return path;
  	}
docs: 创建或者更新索引文档,适应于部分更新
  @param indexName
  @param indexType
  @param addTemplate
  @param bean
  @param refreshOption
  @return
  @throws ElasticSearchException