public <T> T getDocument(String indexName, String indexType,String documentId,Map<String,Object> options,Class<T> beanType) throws ElasticSearchException{
		try{
			SearchHit searchResult = this.client.executeRequest(BuildTool.buildGetDocumentRequest(  indexName,   indexType,  documentId,  options),null,   new GetDocumentResponseHandler( beanType),ClientUtil.HTTP_GET);

			return ResultUtil.buildObject(searchResult, beanType);
		}
		catch(ElasticSearchException e){
			return ResultUtil.hand404HttpRuntimeException(e,beanType,ResultUtil.OPERTYPE_getDocument);
		}

	}
public < T > T getDocument ( String indexName , String indexType , String documentId , Map < String , Object > options , Class < T > beanType ) throws ElasticSearchException { try { SearchHit searchResult = this . client . executeRequest ( BuildTool . buildGetDocumentRequest ( indexName , indexType , documentId , options ) , null , new GetDocumentResponseHandler ( beanType ) , ClientUtil . HTTP_GET ) ; return ResultUtil . buildObject ( searchResult , beanType ) ; } catch ( ElasticSearchException e ) { return ResultUtil . hand404HttpRuntimeException ( e , beanType , ResultUtil . OPERTYPE_getDocument ) ; } }
获取文档，通过options设置获取文档的参数
@param indexName
@param indexType
@param documentId
@param options
@return
@throws ElasticSearchException