Skip to content

implements #1083 Get Index Api #1119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@


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

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

<a class="social-count js-social-count" href="/elasticsearch/elasticsearch/stargazers">
9,173
9,176
</a>

</li>
Expand Down Expand Up @@ -3605,7 +3605,7 @@ <h3><span class="text-emphasized">Subversion</span> checkout URL</h3>
</a>

<ul class="site-footer-links">
<li>&copy; 2014 <span title="0.05490s from github-fe126-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
<li>&copy; 2014 <span title="0.06056s from github-fe129-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
<li><a href="/site/terms">Terms</a></li>
<li><a href="/site/privacy">Privacy</a></li>
<li><a href="/security">Security</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3078,12 +3078,12 @@ public FlushRequestParameters ExpandWildcards(ExpandWildcards expand_wildcards)
///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/indices-get-index.html
///</pre>
///</summary>
public class IndicesGetRequestParameters : FluentRequestParameters<IndicesGetRequestParameters>
public class GetIndexRequestParameters : FluentRequestParameters<GetIndexRequestParameters>
{

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

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

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

internal string[] _expand_wildcards { get; set; }
///<summary>Whether wildcard expressions should get expanded to open or closed indices (default: open)</summary>
public IndicesGetRequestParameters ExpandWildcards(params string[] expand_wildcards)
public GetIndexRequestParameters ExpandWildcards(params string[] expand_wildcards)
{
this._expand_wildcards = expand_wildcards;
this.AddQueryString("expand_wildcards", this._expand_wildcards);
Expand Down
32 changes: 16 additions & 16 deletions src/Elasticsearch.Net/ElasticsearchClient.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13752,15 +13752,15 @@ public Task<ElasticsearchResponse<DynamicDictionary>> IndicesFlushGetAsync(strin
///<para> - If T is of type byte[] deserialization will be shortcircuited</para>
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
///</returns>
public ElasticsearchResponse<T> IndicesGet<T>(string index, Func<IndicesGetRequestParameters, IndicesGetRequestParameters> requestParameters = null)
public ElasticsearchResponse<T> IndicesGet<T>(string index, Func<GetIndexRequestParameters, GetIndexRequestParameters> requestParameters = null)
{
index.ThrowIfNullOrEmpty("index");
var url = "{0}".F(Encoded(index));
IRequestParameters requestParams = null;

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


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

if (requestParameters != null)
{
requestParams = requestParameters(new IndicesGetRequestParameters());
requestParams = requestParameters(new GetIndexRequestParameters());
}


Expand Down
16 changes: 8 additions & 8 deletions src/Elasticsearch.Net/IElasticsearchClient.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7156,7 +7156,7 @@ public partial interface IElasticsearchClient
///<para> - If T is of type VoidResponse the response stream will be ignored completely</para>
///</returns>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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