Skip to content

Commit c736e1f

Browse files
committed
Rerun code gen to include validate_query rewrite param
1 parent b1fa1d2 commit c736e1f

File tree

9 files changed

+354
-295
lines changed

9 files changed

+354
-295
lines changed

src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.flush_synced.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"indices.flush_synced": {
3-
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html",
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html",
44
"methods": ["POST", "GET"],
55
"url": {
66
"path": "/_flush/synced",

src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/indices.validate_query.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
"lowercase_expanded_terms": {
6767
"type" : "boolean",
6868
"description" : "Specify whether query terms should be lowercased"
69+
},
70+
"rewrite": {
71+
"type": "boolean",
72+
"description": "Provide a more detailed explanation showing the actual Lucene query that will be executed."
6973
}
7074
}
7175
},

src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/root.html

Lines changed: 278 additions & 257 deletions
Large diffs are not rendered by default.

src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ namespace CodeGeneration.LowLevelClient
1919
{
2020
public static class ApiGenerator
2121
{
22-
private readonly static string _listingUrl = "https://github.com/elastic/elasticsearch/tree/v1.6.0/rest-api-spec/api";
23-
private readonly static string _rawUrlPrefix = "https://raw.github.com/elastic/elasticsearch/v1.6.0/rest-api-spec/api/";
22+
private readonly static string _listingUrl = "https://github.com/elastic/elasticsearch/tree/1.6/rest-api-spec/api";
23+
private readonly static string _rawUrlPrefix = "https://raw.github.com/elastic/elasticsearch/1.6/rest-api-spec/api/";
2424
private readonly static string _nestFolder = @"..\..\..\..\..\src\Nest\";
2525
private readonly static string _esNetFolder = @"..\..\..\..\..\src\Elasticsearch.Net\";
2626
private readonly static string _viewFolder = @"..\..\Views\";

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4305,7 +4305,7 @@ public FlushRequestParameters FilterPath(string filter_path)
43054305

43064306
///<summary>Request parameters descriptor for IndicesFlushSyncedForAll
43074307
///<pre>
4308-
///http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html
4308+
///http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html
43094309
///</pre>
43104310
///</summary>
43114311
public class SyncedFlushRequestParameters : FluentRequestParameters<SyncedFlushRequestParameters>
@@ -6121,6 +6121,16 @@ public ValidateQueryRequestParameters LowercaseExpandedTerms(bool lowercase_expa
61216121
}
61226122

61236123

6124+
internal bool _rewrite { get; set; }
6125+
///<summary>Provide a more detailed explanation showing the actual Lucene query that will be executed.</summary>
6126+
public ValidateQueryRequestParameters Rewrite(bool rewrite)
6127+
{
6128+
this._rewrite = rewrite;
6129+
this.AddQueryString("rewrite", this._rewrite);
6130+
return this;
6131+
}
6132+
6133+
61246134
internal string _source { get; set; }
61256135
///<summary>The URL-encoded request definition</summary>
61266136
public ValidateQueryRequestParameters Source(string source)

src/Elasticsearch.Net/ElasticsearchClient.Generated.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14605,7 +14605,7 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesFlushGetAsync(strin
1460514605
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1460614606
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1460714607
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
14608-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14608+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1460914609
///</summary>
1461014610
///<param name="requestParameters">
1461114611
///Optional function to specify any additional request parameters
@@ -14637,7 +14637,7 @@ public ElasticsearchResponse<T> IndicesFlushSyncedForAll<T>(Func<SyncedFlushRequ
1463714637
///<para></para>Returns: A task that'll return an ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1463814638
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1463914639
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
14640-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14640+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1464114641
///</summary>
1464214642
///<param name="requestParameters">
1464314643
///Optional function to specify any additional request parameters
@@ -14670,7 +14670,7 @@ public Task<ElasticsearchResponse<T>> IndicesFlushSyncedForAllAsync<T>(Func<Sync
1467014670
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1467114671
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1467214672
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
14673-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14673+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1467414674
///</summary>
1467514675
///<param name="requestParameters">
1467614676
///Optional function to specify any additional request parameters
@@ -14704,7 +14704,7 @@ public ElasticsearchResponse<DynamicDictionary> IndicesFlushSyncedForAll(Func<Sy
1470414704
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1470514705
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1470614706
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
14707-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14707+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1470814708
///</summary>
1470914709
///<param name="requestParameters">
1471014710
///Optional function to specify any additional request parameters
@@ -14737,7 +14737,7 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesFlushSyncedForAllAs
1473714737
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1473814738
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1473914739
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
14740-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14740+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1474114741
///</summary>
1474214742
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1474314743
///<param name="requestParameters">
@@ -14771,7 +14771,7 @@ public ElasticsearchResponse<T> IndicesFlushSynced<T>(string index, Func<SyncedF
1477114771
///<para></para>Returns: A task that'll return an ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1477214772
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1477314773
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
14774-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14774+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1477514775
///</summary>
1477614776
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1477714777
///<param name="requestParameters">
@@ -14806,7 +14806,7 @@ public Task<ElasticsearchResponse<T>> IndicesFlushSyncedAsync<T>(string index, F
1480614806
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1480714807
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1480814808
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
14809-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14809+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1481014810
///</summary>
1481114811
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1481214812
///<param name="requestParameters">
@@ -14842,7 +14842,7 @@ public ElasticsearchResponse<DynamicDictionary> IndicesFlushSynced(string index,
1484214842
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1484314843
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1484414844
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
14845-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14845+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1484614846
///</summary>
1484714847
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1484814848
///<param name="requestParameters">
@@ -14877,7 +14877,7 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesFlushSyncedAsync(st
1487714877
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1487814878
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1487914879
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
14880-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14880+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1488114881
///</summary>
1488214882
///<param name="requestParameters">
1488314883
///Optional function to specify any additional request parameters
@@ -14909,7 +14909,7 @@ public ElasticsearchResponse<T> IndicesFlushSyncedGetForAll<T>(Func<SyncedFlushR
1490914909
///<para></para>Returns: A task that'll return an ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1491014910
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1491114911
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
14912-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14912+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1491314913
///</summary>
1491414914
///<param name="requestParameters">
1491514915
///Optional function to specify any additional request parameters
@@ -14942,7 +14942,7 @@ public Task<ElasticsearchResponse<T>> IndicesFlushSyncedGetForAllAsync<T>(Func<S
1494214942
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1494314943
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1494414944
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
14945-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14945+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1494614946
///</summary>
1494714947
///<param name="requestParameters">
1494814948
///Optional function to specify any additional request parameters
@@ -14976,7 +14976,7 @@ public ElasticsearchResponse<DynamicDictionary> IndicesFlushSyncedGetForAll(Func
1497614976
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1497714977
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1497814978
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
14979-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
14979+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1498014980
///</summary>
1498114981
///<param name="requestParameters">
1498214982
///Optional function to specify any additional request parameters
@@ -15009,7 +15009,7 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesFlushSyncedGetForAl
1500915009
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1501015010
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1501115011
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
15012-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
15012+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1501315013
///</summary>
1501415014
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1501515015
///<param name="requestParameters">
@@ -15043,7 +15043,7 @@ public ElasticsearchResponse<T> IndicesFlushSyncedGet<T>(string index, Func<Sync
1504315043
///<para></para>Returns: A task that'll return an ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
1504415044
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1504515045
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
15046-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
15046+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1504715047
///</summary>
1504815048
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1504915049
///<param name="requestParameters">
@@ -15078,7 +15078,7 @@ public Task<ElasticsearchResponse<T>> IndicesFlushSyncedGetAsync<T>(string index
1507815078
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1507915079
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1508015080
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
15081-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
15081+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1508215082
///</summary>
1508315083
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1508415084
///<param name="requestParameters">
@@ -15114,7 +15114,7 @@ public ElasticsearchResponse<DynamicDictionary> IndicesFlushSyncedGet(string ind
1511415114
///<para> - Dynamic dictionary is a special dynamic type that allows json to be traversed safely</para>
1511515115
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1511615116
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
15117-
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para>
15117+
///<para>See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para>
1511815118
///</summary>
1511915119
///<param name="index">A comma-separated list of index names; use `_all` or empty string for all indices</param>
1512015120
///<param name="requestParameters">

0 commit comments

Comments
 (0)