Skip to content

Commit 75c5f41

Browse files
[codegen] 7.x synchronization (#5689)
Co-authored-by: Mpdreamz <Mpdreamz@users.noreply.github.com>
1 parent 6d1802c commit 75c5f41

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"termsenum":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html",
5+
"description": "The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios."
6+
},
7+
"stability":"beta",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path": "/{index}/_terms_enum",
17+
"methods": [
18+
"GET",
19+
"POST"
20+
],
21+
"parts": {
22+
"index": {
23+
"type": "list",
24+
"description": "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{},
31+
"body":{
32+
"description":"field name, string which is the prefix expected in matching terms, timeout and size for max number of results"
33+
}
34+
}
35+
}

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,13 @@ public bool? TypedKeys
20472047
}
20482048
}
20492049

2050+
///<summary>Request options for Termsenum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
2051+
public class TermsenumRequestParameters : RequestParameters<TermsenumRequestParameters>
2052+
{
2053+
public override HttpMethod DefaultHttpMethod => HttpMethod.POST;
2054+
public override bool SupportsBody => true;
2055+
}
2056+
20502057
///<summary>Request options for TermVectors <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
20512058
public class TermVectorsRequestParameters : RequestParameters<TermVectorsRequestParameters>
20522059
{

src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,21 @@ public TResponse SearchTemplateUsingType<TResponse>(string index, string type, P
12441244
[MapsApi("search_template", "index, type, body")]
12451245
public Task<TResponse> SearchTemplateUsingTypeAsync<TResponse>(string index, string type, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
12461246
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/{type:type}/_search/template"), ctx, body, RequestParams(requestParameters));
1247+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1248+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
1249+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
1250+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
1251+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
1252+
public TResponse Termsenum<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null)
1253+
where TResponse : class, IElasticsearchResponse, new() => DoRequest<TResponse>(POST, Url($"{index:index}/_terms_enum"), body, RequestParams(requestParameters));
1254+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1255+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
1256+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
1257+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
1258+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
1259+
[MapsApi("termsenum", "index, body")]
1260+
public Task<TResponse> TermsenumAsync<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null, CancellationToken ctx = default)
1261+
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_terms_enum"), ctx, body, RequestParams(requestParameters));
12471262
///<summary>POST on /{index}/_termvectors/{id} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
12481263
///<param name = "index">The index in which the document resides.</param>
12491264
///<param name = "id">The id of the document, when not specified a doc param should be supplied.</param>

src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,20 @@ TResponse SearchTemplateUsingType<TResponse>(string index, string type, PostData
10631063
[Obsolete("Deprecated in version 7.0.0: Specifying types in urls has been deprecated")]
10641064
Task<TResponse> SearchTemplateUsingTypeAsync<TResponse>(string index, string type, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
10651065
where TResponse : class, IElasticsearchResponse, new();
1066+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1067+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
1068+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
1069+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
1070+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
1071+
TResponse Termsenum<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null)
1072+
where TResponse : class, IElasticsearchResponse, new();
1073+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1074+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
1075+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
1076+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
1077+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
1078+
Task<TResponse> TermsenumAsync<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null, CancellationToken ctx = default)
1079+
where TResponse : class, IElasticsearchResponse, new();
10661080
///<summary>POST on /{index}/_termvectors/{id} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
10671081
///<param name = "index">The index in which the document resides.</param>
10681082
///<param name = "id">The id of the document, when not specified a doc param should be supplied.</param>

0 commit comments

Comments
 (0)