/// <summary> /// 获取一条数据 /// </summary> /// <param name="id">Id</param> /// <returns></returns> public virtual T Get(string id) { var esResult = EsClient.Get <T>(id, i => i.Index(CurrentIndex)); return(esResult.Found ? esResult.Source : null); }