Skip to content

Commit e51a1fb

Browse files
committed
ExpandWildcards bwc changes
1 parent 76c0196 commit e51a1fb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/Nest/DSL/GetIndexDescriptor.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.IO;
34
using System.Linq;
45
using System.Text;
56
using Elasticsearch.Net;
7+
using Nest.DSL.Query;
68
using Newtonsoft.Json;
79

810
namespace Nest
@@ -84,6 +86,12 @@ public GetIndexDescriptor Features(GetIndexFeature features)
8486
return this;
8587
}
8688

89+
[Obsolete("Please use the overload taking an enum", true)]
90+
public GetIndexDescriptor ExpandWildcards(params string[] expandWildcards)
91+
{
92+
throw new NotImplementedException();
93+
}
94+
8795
protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo<GetIndexRequestParameters> pathInfo)
8896
{
8997
GetIndexPathInfo.Update(pathInfo, this);

src/Nest/DSL/GetMappingDescriptor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ protected override void UpdatePathInfo(IConnectionSettingsValues settings, Elast
4343
public partial class GetMappingDescriptor<T> : IndexTypePathDescriptor<GetMappingDescriptor<T>, GetMappingRequestParameters, T>, IGetMappingRequest
4444
where T : class
4545
{
46+
[Obsolete("Please use the overload taking an enum", true)]
47+
public GetIndexDescriptor ExpandWildcards(params string[] expandWildcards)
48+
{
49+
throw new NotImplementedException();
50+
}
51+
4652
protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo<GetMappingRequestParameters> pathInfo)
4753
{
4854
GetMappingPathInfo.Update(pathInfo, this);

0 commit comments

Comments
 (0)