Skip to content

Commit c6eef60

Browse files
committed
Merge pull request #1119 from elasticsearch/feature/get-index
implements #1083 Get Index Api
2 parents a80ec71 + 808da5e commit c6eef60

26 files changed

+565
-171
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646
<meta content="authenticity_token" name="csrf-param" />
47-
<meta content="dNEMMi9H8+4YtPers+GLRJfwlV8EMP3E4P0VutR2pFLWs+vOC4PqBd57IbDtyAFS5UHHWcZ/DiLFIz2b0k98BA==" name="csrf-token" />
47+
<meta content="nkRwL/MqKQCg+36QCMw24NATbnn6hdySAsxzrx/B3HEdUbaDmlKQZi+WExe2DZ4/OxZijRTAF388p7lxKeAjug==" name="csrf-token" />
4848

4949
<link href="https://assets-cdn.github.com/assets/github-2a88a7bf0ff1b660d7ff29c3220a68751650b37fc53d40d3a7068e835fd213ec.css" media="all" rel="stylesheet" type="text/css" />
5050
<link href="https://assets-cdn.github.com/assets/github2-ee4170e0122d252766e3edc8c97b6cc6ae381c974013b5047ed5ad8895c56fe0.css" media="all" rel="stylesheet" type="text/css" />
@@ -141,7 +141,7 @@
141141
</a>
142142

143143
<a class="social-count js-social-count" href="/elasticsearch/elasticsearch/stargazers">
144-
9,173
144+
9,176
145145
</a>
146146

147147
</li>
@@ -3605,7 +3605,7 @@ <h3><span class="text-emphasized">Subversion</span> checkout URL</h3>
36053605
</a>
36063606

36073607
<ul class="site-footer-links">
3608-
<li>&copy; 2014 <span title="0.05490s from github-fe126-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
3608+
<li>&copy; 2014 <span title="0.06056s from github-fe129-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
36093609
<li><a href="/site/terms">Terms</a></li>
36103610
<li><a href="/site/privacy">Privacy</a></li>
36113611
<li><a href="/security">Security</a></li>

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -3078,12 +3078,12 @@ public FlushRequestParameters ExpandWildcards(ExpandWildcards expand_wildcards)
30783078
///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/indices-get-index.html
30793079
///</pre>
30803080
///</summary>
3081-
public class IndicesGetRequestParameters : FluentRequestParameters<IndicesGetRequestParameters>
3081+
public class GetIndexRequestParameters : FluentRequestParameters<GetIndexRequestParameters>
30823082
{
30833083

30843084
internal bool _local { get; set; }
30853085
///<summary>Return local information, do not retrieve the state from master node (default: false)</summary>
3086-
public IndicesGetRequestParameters Local(bool local)
3086+
public GetIndexRequestParameters Local(bool local)
30873087
{
30883088
this._local = local;
30893089
this.AddQueryString("local", this._local);
@@ -3093,7 +3093,7 @@ public IndicesGetRequestParameters Local(bool local)
30933093

30943094
internal bool _ignore_unavailable { get; set; }
30953095
///<summary>Ignore unavailable indexes (default: false)</summary>
3096-
public IndicesGetRequestParameters IgnoreUnavailable(bool ignore_unavailable)
3096+
public GetIndexRequestParameters IgnoreUnavailable(bool ignore_unavailable)
30973097
{
30983098
this._ignore_unavailable = ignore_unavailable;
30993099
this.AddQueryString("ignore_unavailable", this._ignore_unavailable);
@@ -3103,7 +3103,7 @@ public IndicesGetRequestParameters IgnoreUnavailable(bool ignore_unavailable)
31033103

31043104
internal bool _allow_no_indices { get; set; }
31053105
///<summary>Ignore if a wildcard expression resolves to no concrete indices (default: false)</summary>
3106-
public IndicesGetRequestParameters AllowNoIndices(bool allow_no_indices)
3106+
public GetIndexRequestParameters AllowNoIndices(bool allow_no_indices)
31073107
{
31083108
this._allow_no_indices = allow_no_indices;
31093109
this.AddQueryString("allow_no_indices", this._allow_no_indices);
@@ -3113,7 +3113,7 @@ public IndicesGetRequestParameters AllowNoIndices(bool allow_no_indices)
31133113

31143114
internal string[] _expand_wildcards { get; set; }
31153115
///<summary>Whether wildcard expressions should get expanded to open or closed indices (default: open)</summary>
3116-
public IndicesGetRequestParameters ExpandWildcards(params string[] expand_wildcards)
3116+
public GetIndexRequestParameters ExpandWildcards(params string[] expand_wildcards)
31173117
{
31183118
this._expand_wildcards = expand_wildcards;
31193119
this.AddQueryString("expand_wildcards", this._expand_wildcards);

src/Elasticsearch.Net/ElasticsearchClient.Generated.cs

+16-16
Original file line numberDiff line numberDiff line change
@@ -13752,15 +13752,15 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesFlushGetAsync(strin
1375213752
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1375313753
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
1375413754
///</returns>
13755-
public ElasticsearchResponse<T> IndicesGet<T>(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13755+
public ElasticsearchResponse<T> IndicesGet<T>(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1375613756
{
1375713757
index.ThrowIfNullOrEmpty("index");
1375813758
var url = "{0}".F(Encoded(index));
1375913759
IRequestParameters requestParams = null;
1376013760

1376113761
if (requestParameters != null)
1376213762
{
13763-
requestParams = requestParameters(new IndicesGetRequestParameters());
13763+
requestParams = requestParameters(new GetIndexRequestParameters());
1376413764
}
1376513765

1376613766

@@ -13786,15 +13786,15 @@ public ElasticsearchResponse<T> IndicesGet<T>(string index, Func<IndicesGetReque
1378613786
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1378713787
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
1378813788
///</returns>
13789-
public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13789+
public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1379013790
{
1379113791
index.ThrowIfNullOrEmpty("index");
1379213792
var url = "{0}".F(Encoded(index));
1379313793
IRequestParameters requestParams = null;
1379413794

1379513795
if (requestParameters != null)
1379613796
{
13797-
requestParams = requestParameters(new IndicesGetRequestParameters());
13797+
requestParams = requestParameters(new GetIndexRequestParameters());
1379813798
}
1379913799

1380013800

@@ -13822,15 +13822,15 @@ public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, Func<Indi
1382213822
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1382313823
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
1382413824
///</returns>
13825-
public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13825+
public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1382613826
{
1382713827
index.ThrowIfNullOrEmpty("index");
1382813828
var url = "{0}".F(Encoded(index));
1382913829
IRequestParameters requestParams = null;
1383013830

1383113831
if (requestParameters != null)
1383213832
{
13833-
requestParams = requestParameters(new IndicesGetRequestParameters());
13833+
requestParams = requestParameters(new GetIndexRequestParameters());
1383413834
}
1383513835

1383613836

@@ -13858,15 +13858,15 @@ public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, Func<In
1385813858
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1385913859
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
1386013860
///</returns>
13861-
public Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13861+
public Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1386213862
{
1386313863
index.ThrowIfNullOrEmpty("index");
1386413864
var url = "{0}".F(Encoded(index));
1386513865
IRequestParameters requestParams = null;
1386613866

1386713867
if (requestParameters != null)
1386813868
{
13869-
requestParams = requestParameters(new IndicesGetRequestParameters());
13869+
requestParams = requestParameters(new GetIndexRequestParameters());
1387013870
}
1387113871

1387213872

@@ -13893,7 +13893,7 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string ind
1389313893
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1389413894
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
1389513895
///</returns>
13896-
public ElasticsearchResponse<T> IndicesGet<T>(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13896+
public ElasticsearchResponse<T> IndicesGet<T>(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1389713897
{
1389813898
index.ThrowIfNullOrEmpty("index");
1389913899
feature.ThrowIfNullOrEmpty("feature");
@@ -13902,7 +13902,7 @@ public ElasticsearchResponse<T> IndicesGet<T>(string index, string feature, Func
1390213902

1390313903
if (requestParameters != null)
1390413904
{
13905-
requestParams = requestParameters(new IndicesGetRequestParameters());
13905+
requestParams = requestParameters(new GetIndexRequestParameters());
1390613906
}
1390713907

1390813908

@@ -13929,7 +13929,7 @@ public ElasticsearchResponse<T> IndicesGet<T>(string index, string feature, Func
1392913929
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
1393013930
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
1393113931
///</returns>
13932-
public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13932+
public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1393313933
{
1393413934
index.ThrowIfNullOrEmpty("index");
1393513935
feature.ThrowIfNullOrEmpty("feature");
@@ -13938,7 +13938,7 @@ public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, string fe
1393813938

1393913939
if (requestParameters != null)
1394013940
{
13941-
requestParams = requestParameters(new IndicesGetRequestParameters());
13941+
requestParams = requestParameters(new GetIndexRequestParameters());
1394213942
}
1394313943

1394413944

@@ -13967,7 +13967,7 @@ public Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, string fe
1396713967
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1396813968
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
1396913969
///</returns>
13970-
public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
13970+
public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1397113971
{
1397213972
index.ThrowIfNullOrEmpty("index");
1397313973
feature.ThrowIfNullOrEmpty("feature");
@@ -13976,7 +13976,7 @@ public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, string
1397613976

1397713977
if (requestParameters != null)
1397813978
{
13979-
requestParams = requestParameters(new IndicesGetRequestParameters());
13979+
requestParams = requestParameters(new GetIndexRequestParameters());
1398013980
}
1398113981

1398213982

@@ -14005,7 +14005,7 @@ public ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, string
1400514005
///<para> - i.e result.Response.hits.hits[0].property.nested["nested_deeper"]</para>
1400614006
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
1400714007
///</returns>
14008-
public Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
14008+
public Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
1400914009
{
1401014010
index.ThrowIfNullOrEmpty("index");
1401114011
feature.ThrowIfNullOrEmpty("feature");
@@ -14014,7 +14014,7 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string ind
1401414014

1401514015
if (requestParameters != null)
1401614016
{
14017-
requestParams = requestParameters(new IndicesGetRequestParameters());
14017+
requestParams = requestParameters(new GetIndexRequestParameters());
1401814018
}
1401914019

1402014020

src/Elasticsearch.Net/IElasticsearchClient.Generated.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -7156,7 +7156,7 @@ public partial interface IElasticsearchClient
71567156
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
71577157
///</returns>
71587158

7159-
ElasticsearchResponse<T> IndicesGet<T>(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7159+
ElasticsearchResponse<T> IndicesGet<T>(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
71607160

71617161
///<summary>Represents a GET on /{index}
71627162
///<para></para>Returns: A task that'll return an ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
@@ -7174,7 +7174,7 @@ public partial interface IElasticsearchClient
71747174
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
71757175
///</returns>
71767176

7177-
Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7177+
Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
71787178

71797179
///<summary>Represents a GET on /{index}
71807180
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the response body deserialized as DynamicDictionary
@@ -7194,7 +7194,7 @@ public partial interface IElasticsearchClient
71947194
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
71957195
///</returns>
71967196

7197-
ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7197+
ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
71987198

71997199
///<summary>Represents a GET on /{index}
72007200
///<para></para>Returns: Task that'll return an ElasticsearchResponse&lt;T$gt; holding the response body deserialized as DynamicDictionary
@@ -7214,7 +7214,7 @@ public partial interface IElasticsearchClient
72147214
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
72157215
///</returns>
72167216

7217-
Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7217+
Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
72187218

72197219
///<summary>Represents a GET on /{index}/{feature}
72207220
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
@@ -7233,7 +7233,7 @@ public partial interface IElasticsearchClient
72337233
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
72347234
///</returns>
72357235

7236-
ElasticsearchResponse<T> IndicesGet<T>(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7236+
ElasticsearchResponse<T> IndicesGet<T>(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
72377237

72387238
///<summary>Represents a GET on /{index}/{feature}
72397239
///<para></para>Returns: A task that'll return an ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.
@@ -7252,7 +7252,7 @@ public partial interface IElasticsearchClient
72527252
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
72537253
///</returns>
72547254

7255-
Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7255+
Task<ElasticsearchResponse<T>> IndicesGetAsync<T>(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
72567256

72577257
///<summary>Represents a GET on /{index}/{feature}
72587258
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the response body deserialized as DynamicDictionary
@@ -7273,7 +7273,7 @@ public partial interface IElasticsearchClient
72737273
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
72747274
///</returns>
72757275

7276-
ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7276+
ElasticsearchResponse<DynamicDictionary> IndicesGet(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
72777277

72787278
///<summary>Represents a GET on /{index}/{feature}
72797279
///<para></para>Returns: Task that'll return an ElasticsearchResponse&lt;T$gt; holding the response body deserialized as DynamicDictionary
@@ -7294,7 +7294,7 @@ public partial interface IElasticsearchClient
72947294
///<para> - can be safely dispatched to a nullable type even if intermediate properties do not exist</para>
72957295
///</returns>
72967296

7297-
Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, string feature, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null);
7297+
Task<ElasticsearchResponse<DynamicDictionary>> IndicesGetAsync(string index, string feature, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null);
72987298

72997299
///<summary>Represents a GET on /_alias
73007300
///<para></para>Returns: ElasticsearchResponse&lt;T&gt; holding the reponse body deserialized as T.

0 commit comments

Comments
 (0)