File tree 1 file changed +18
-0
lines changed
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)
31
31
return this . MultiGet < T > ( ids , this . PathResolver . CreateIndexTypePath ( index , typeName ) ) ;
32
32
}
33
33
/// <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>
34
52
/// Gets multiple documents of T by id in the specified index and the specified typename for T
35
53
/// </summary>
36
54
public IEnumerable < T > MultiGet < T > ( string index , string type , IEnumerable < int > ids )
You can’t perform that action at this time.
0 commit comments