Skip to content

Commit 1f6d87b

Browse files
committed
Merge branch 'fix/2.x-allow404s' into 2.x
2 parents 179e5e3 + d16ebcf commit 1f6d87b

File tree

17 files changed

+690
-372
lines changed

17 files changed

+690
-372
lines changed

src/CodeGeneration/ApiGenerator/Overrides/Allow404/ApiEndpointsThatAllow404.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public static class ApiEndpointsThatAllow404
1515
"IndexTemplateExists",
1616
"TypeExists",
1717
"Exists",
18-
//"Get"
19-
//"Delete",
18+
"Get",
19+
"Delete",
2020
};
2121
}
2222
}

src/CodeGeneration/ApiGenerator/RestSpecification/Core/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"refresh": {
4141
"type" : "boolean",
42-
"description" : "Refresh the index after performing the operation"
42+
"description" : "Refresh the affected shards after performing the operation"
4343
},
4444
"routing": {
4545
"type" : "string",

src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html

Lines changed: 347 additions & 254 deletions
Large diffs are not rendered by default.

src/CodeGeneration/ApiGenerator/RestSpecification/DeleteByQuery/root.html

Lines changed: 227 additions & 103 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.4.0
1+
v2.4.1

src/Elasticsearch.Net/Domain/Enums.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
///This file contains all the typed enums that the client rest api spec exposes.
99
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
10-
///Generated of commit v2.4.0
10+
///Generated of commit v2.4.1
1111
namespace Elasticsearch.Net
1212
{
1313

src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using System.Linq.Expressions;
77

88
///This file contains all the typed querystring parameters that are generated of the client spec.
9-
///This file is automatically generated from https://github.com/elastic/elasticsearch/tree/v2.4.0/rest-api-spec
10-
///Generated of commit v2.4.0
9+
///This file is automatically generated from https://github.com/elastic/elasticsearch/tree/v2.4.1/rest-api-spec
10+
///Generated of commit v2.4.1
1111

1212
namespace Elasticsearch.Net
1313
{

src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ public Task<ElasticsearchResponse<T>> CountPercolateAsync<T>(string index, strin
15351535
///<param name="id">The document ID</param>
15361536
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
15371537
public ElasticsearchResponse<T> Delete<T>(string index, string type, string id, Func<DeleteRequestParameters, DeleteRequestParameters> requestParameters = null)
1538-
where T : class => this.DoRequest<T>(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters));
1538+
where T : class => this.DoRequest<T>(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true));
15391539

15401540
///<summary>Represents a DELETE on /{index}/{type}/{id}
15411541
///<para></para>Returns: A task of ElasticsearchResponse&lt;T&gt; where the behaviour depends on the type of T:
@@ -1551,7 +1551,7 @@ public ElasticsearchResponse<T> Delete<T>(string index, string type, string id,
15511551
///<param name="id">The document ID</param>
15521552
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
15531553
public Task<ElasticsearchResponse<T>> DeleteAsync<T>(string index, string type, string id, Func<DeleteRequestParameters, DeleteRequestParameters> requestParameters = null)
1554-
where T : class => this.DoRequestAsync<T>(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters));
1554+
where T : class => this.DoRequestAsync<T>(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true));
15551555

15561556
///<summary>Represents a DELETE on /_scripts/{lang}/{id}
15571557
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; where the behavior depends on the type of T:
@@ -1835,7 +1835,7 @@ public Task<ElasticsearchResponse<T>> FieldStatsAsync<T>(string index, PostData<
18351835
///<param name="id">The document ID</param>
18361836
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
18371837
public ElasticsearchResponse<T> Get<T>(string index, string type, string id, Func<GetRequestParameters, GetRequestParameters> requestParameters = null)
1838-
where T : class => this.DoRequest<T>(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters));
1838+
where T : class => this.DoRequest<T>(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true));
18391839

18401840
///<summary>Represents a GET on /{index}/{type}/{id}
18411841
///<para></para>Returns: A task of ElasticsearchResponse&lt;T&gt; where the behaviour depends on the type of T:
@@ -1851,7 +1851,7 @@ public ElasticsearchResponse<T> Get<T>(string index, string type, string id, Fun
18511851
///<param name="id">The document ID</param>
18521852
///<param name="requestParameters">A func that allows you to describe the querystring parameters &amp; request specific connection settings.</param>
18531853
public Task<ElasticsearchResponse<T>> GetAsync<T>(string index, string type, string id, Func<GetRequestParameters, GetRequestParameters> requestParameters = null)
1854-
where T : class => this.DoRequestAsync<T>(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters));
1854+
where T : class => this.DoRequestAsync<T>(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true));
18551855

18561856
///<summary>Represents a GET on /_scripts/{lang}/{id}
18571857
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; where the behavior depends on the type of T:

src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Elasticsearch.Net
1515
///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
1616
///</pre>
1717
///<pre>
18-
///Generated of commit v2.4.0
18+
///Generated of commit v2.4.1
1919
///</pre>
2020
///</summary>
2121
public partial interface IElasticLowLevelClient

src/Nest/_Generated/_Descriptors.generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
//This file lays the base for all the descriptors based on the query string parameters in the spec for IElasticClient.
99
//This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec
10-
//Generated of commit v2.4.0
10+
//Generated of commit v2.4.1
1111

1212
namespace Nest
1313
{

0 commit comments

Comments
 (0)