diff --git a/src/Nest/ElasticClient-MultiGet.cs b/src/Nest/ElasticClient-MultiGet.cs index 82a4b1574fd..29142c872f3 100644 --- a/src/Nest/ElasticClient-MultiGet.cs +++ b/src/Nest/ElasticClient-MultiGet.cs @@ -31,6 +31,24 @@ public IEnumerable MultiGet(IEnumerable ids) return this.MultiGet(ids, this.PathResolver.CreateIndexTypePath(index, typeName)); } /// + /// Gets multiple documents of T by id in the specified index + /// + public IEnumerable MultiGet(string index, IEnumerable ids) + where T : class + { + return this.MultiGet(index, ids.Select(i => Convert.ToString(i))); + } + /// + /// Gets multiple documents of T by id in the specified index + /// + public IEnumerable MultiGet(string index, IEnumerable ids) + where T : class + { + var typeName = this.GetTypeNameFor(); + + return this.MultiGet(ids, this.PathResolver.CreateIndexTypePath(index, typeName)); + } + /// /// Gets multiple documents of T by id in the specified index and the specified typename for T /// public IEnumerable MultiGet(string index, string type, IEnumerable ids)