File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,24 @@ public IEnumerable<T> MultiGet<T>(IEnumerable<string> ids)
3131 return this . MultiGet < T > ( ids , this . PathResolver . CreateIndexTypePath ( index , typeName ) ) ;
3232 }
3333 /// <summary>
34+ /// Gets multiple documents of T by id in the specified index
35+ /// </summary>
36+ public IEnumerable < T > MultiGet < T > ( string index , IEnumerable < int > ids )
37+ where T : class
38+ {
39+ return this . MultiGet < T > ( index , ids . Select ( i => Convert . ToString ( i ) ) ) ;
40+ }
41+ /// <summary>
42+ /// Gets multiple documents of T by id in the specified index
43+ /// </summary>
44+ public IEnumerable < T > MultiGet < T > ( string index , IEnumerable < string > ids )
45+ where T : class
46+ {
47+ var typeName = this . GetTypeNameFor < T > ( ) ;
48+
49+ return this . MultiGet < T > ( ids , this . PathResolver . CreateIndexTypePath ( index , typeName ) ) ;
50+ }
51+ /// <summary>
3452 /// Gets multiple documents of T by id in the specified index and the specified typename for T
3553 /// </summary>
3654 public IEnumerable < T > MultiGet < T > ( string index , string type , IEnumerable < int > ids )
You can’t perform that action at this time.
0 commit comments