@@ -29,29 +29,28 @@ public IGetResponse<T> GetFull<T>(string id) where T : class
2929 index . ThrowIfNullOrEmpty ( "Cannot infer default index for current connection." ) ;
3030
3131 var typeName = this . GetTypeNameFor < T > ( ) ;
32-
33- return this . GetFull < T > ( id , this . PathResolver . CreateIndexTypePath ( index , typeName ) ) ;
32+ var path = this . PathResolver . CreateIndexTypeIdPath ( index , typeName , id ) ;
33+ return this . _GetFull < T > ( path ) ;
3434 }
3535 /// <summary>
3636 /// Gets a document of T by id in the specified index and the specified typename
3737 /// </summary>
3838 /// <returns>an instance of T</returns>
3939 public IGetResponse < T > GetFull < T > ( string index , string type , string id ) where T : class
4040 {
41- return this . GetFull < T > ( id , index + "/" + type + "/" ) ;
41+ var path = this . PathResolver . CreateIndexTypeIdPath ( index , type , id ) ;
42+ return this . _GetFull < T > ( path ) ;
4243 }
4344 /// <summary>
4445 /// Gets a document of T by id in the specified index and the specified typename
4546 /// </summary>
4647 /// <returns>an instance of T</returns>
4748 public IGetResponse < T > GetFull < T > ( string index , string type , int id ) where T : class
4849 {
49- return this . GetFull < T > ( id . ToString ( ) , index + "/" + type + "/" ) ;
50- }
51- private IGetResponse < T > GetFull < T > ( string id , string path ) where T : class
52- {
53- return this . _GetFull < T > ( path + id ) ;
50+ var path = this . PathResolver . CreateIndexTypeIdPath ( index , type , id . ToString ( ) ) ;
51+ return this . _GetFull < T > ( path ) ;
5452 }
53+
5554
5655 public IGetResponse < T > GetFull < T > ( Action < GetDescriptor < T > > getSelector ) where T : class
5756 {
0 commit comments