Skip to content

Commit fac8787

Browse files
committed
BWC for Full() param that was removed from indices flush
1 parent 1c117d7 commit fac8787

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

src/Elasticsearch.Net/Elasticsearch.Net.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
<Compile Include="Exceptions\OneToOneServerException.cs" />
7575
<Compile Include="Exceptions\ElasticsearchAuthException.cs" />
7676
<Compile Include="IElasticsearchClient.cs" />
77+
<Compile Include="Obsolete\RequestParameters\FlushRequestParametersObsoleteExtensions.cs" />
7778
<Compile Include="Obsolete\IndicesDeleteAlias.cs" />
7879
<Compile Include="Obsolete\IndicesPutAlias.cs" />
7980
<Compile Include="Obsolete\IndicesRecoveryStatus.cs" />
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Elasticsearch.Net;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
7+
namespace Elasticsearch.Net
8+
{
9+
public static class FlushRequestParametersObsoleteExtensions
10+
{
11+
///<summary>If set to true a new index writer is created and settings that have been changed related to the index writer will be refreshed. Note: if a full flush is required for a setting to take effect this will be part of the settings update process and it not required to be executed by the user. (This setting can be considered as internal)</summary>
12+
[Obsolete("Scheduled to be removed in 2.0")]
13+
public static FlushRequestParameters Full(this FlushRequestParameters parameters, bool full)
14+
{
15+
parameters.AddQueryString("full", full);
16+
return parameters;
17+
}
18+
}
19+
}

src/Nest/DSL/FlushDescriptor.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,12 @@ protected override void UpdatePathInfo(IConnectionSettingsValues settings, Elast
3131
{
3232
FlushPathInfo.Update(pathInfo, this);
3333
}
34+
35+
[Obsolete("Scheduled to be removed in 2.0")]
36+
public FlushDescriptor Full(bool full)
37+
{
38+
this.Request.RequestParameters.Full(full);
39+
return this;
40+
}
3441
}
3542
}

0 commit comments

Comments
 (0)