@@ -11,8 +11,8 @@ namespace Nest
1111 public static class GetManyExtensions
1212 {
1313 /// <summary>
14- /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
15- /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
14+ /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
15+ /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
1616 /// provided by the get API.
1717 /// <para> </para>>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html
1818 /// </summary>
@@ -21,16 +21,16 @@ public static class GetManyExtensions
2121 /// <param name="ids">IEnumerable of ids as string for the documents to fetch</param>
2222 /// <param name="index">Optionally override the default inferred index name for T</param>
2323 /// <param name="type">Optionally overiide the default inferred typename for T</param>
24- public static IEnumerable < IMultiGetHit < T > > GetMany < T > ( this IElasticClient client , IEnumerable < string > ids , string index = null , string type = null )
24+ public static IEnumerable < IMultiGetHit < T > > GetMany < T > ( this IElasticClient client , IEnumerable < string > ids , IndexName index = null , TypeName type = null )
2525 where T : class
2626 {
27- var result = client . MultiGet ( s => s . GetMany < T > ( ids , ( gs , i ) => gs . Index ( index ) . Type ( type ) ) ) ;
27+ var result = client . MultiGet ( s => s . GetMany < T > ( ids ) . Index ( index ) . Type ( type ) ) ;
2828 return result . GetMany < T > ( ids ) ;
2929 }
30-
30+
3131 /// <summary>
32- /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
33- /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
32+ /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
33+ /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
3434 /// provided by the get API.
3535 /// <para> </para>>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html
3636 /// </summary>
@@ -39,15 +39,15 @@ public static IEnumerable<IMultiGetHit<T>> GetMany<T>(this IElasticClient client
3939 /// <param name="ids">IEnumerable of ids as ints for the documents to fetch</param>
4040 /// <param name="index">Optionally override the default inferred index name for T</param>
4141 /// <param name="type">Optionally overiide the default inferred typename for T</param>
42- public static IEnumerable < IMultiGetHit < T > > GetMany < T > ( this IElasticClient client , IEnumerable < long > ids , string index = null , string type = null )
42+ public static IEnumerable < IMultiGetHit < T > > GetMany < T > ( this IElasticClient client , IEnumerable < long > ids , IndexName index = null , TypeName type = null )
4343 where T : class
4444 {
4545 return client . GetMany < T > ( ids . Select ( i => i . ToString ( CultureInfo . InvariantCulture ) ) , index , type ) ;
4646 }
4747
4848 /// <summary>
49- /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
50- /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
49+ /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
50+ /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
5151 /// provided by the get API.
5252 /// <para> </para>>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html
5353 /// </summary>
@@ -56,16 +56,16 @@ public static IEnumerable<IMultiGetHit<T>> GetMany<T>(this IElasticClient client
5656 /// <param name="ids">IEnumerable of ids as string for the documents to fetch</param>
5757 /// <param name="index">Optionally override the default inferred index name for T</param>
5858 /// <param name="type">Optionally overiide the default inferred typename for T</param>
59- public static async Task < IEnumerable < IMultiGetHit < T > > > GetManyAsync < T > ( this IElasticClient client , IEnumerable < string > ids , string index = null , string type = null )
59+ public static async Task < IEnumerable < IMultiGetHit < T > > > GetManyAsync < T > ( this IElasticClient client , IEnumerable < string > ids , IndexName index = null , TypeName type = null )
6060 where T : class
6161 {
62- var response = await client . MultiGetAsync ( s => s . GetMany < T > ( ids , ( gs , i ) => gs . Index ( index ) . Type ( type ) ) ) . ConfigureAwait ( false ) ;
62+ var response = await client . MultiGetAsync ( s => s . GetMany < T > ( ids ) . Index ( index ) . Type ( type ) ) . ConfigureAwait ( false ) ;
6363 return response . GetMany < T > ( ids ) ;
6464 }
6565
6666 /// <summary>
67- /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
68- /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
67+ /// Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing).
68+ /// The response includes a docs array with all the fetched documents, each element similar in structure to a document
6969 /// provided by the get API.
7070 /// <para> </para>>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html
7171 /// </summary>
@@ -74,10 +74,10 @@ public static async Task<IEnumerable<IMultiGetHit<T>>> GetManyAsync<T>(this IEla
7474 /// <param name="ids">IEnumerable of ids as ints for the documents to fetch</param>
7575 /// <param name="index">Optionally override the default inferred index name for T</param>
7676 /// <param name="type">Optionally overiide the default inferred typename for T</param>
77- public static Task < IEnumerable < IMultiGetHit < T > > > GetManyAsync < T > ( this IElasticClient client , IEnumerable < long > ids , string index = null , string type = null )
77+ public static Task < IEnumerable < IMultiGetHit < T > > > GetManyAsync < T > ( this IElasticClient client , IEnumerable < long > ids , IndexName index = null , TypeName type = null )
7878 where T : class
7979 {
8080 return client . GetManyAsync < T > ( ids . Select ( i => i . ToString ( CultureInfo . InvariantCulture ) ) , index , type ) ;
8181 }
8282 }
83- }
83+ }
0 commit comments