diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
index d2b24366f4c..4d7c69eba2d 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
@@ -36,6 +36,7 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" });
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" });
internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "{index}/_delete_by_query" });
+ internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "_delete_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{id}" });
internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
@@ -43,8 +44,13 @@ internal static class ApiUrlLookup
internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "_enrich/policy/{name}/_execute" });
internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "_enrich/policy/{name}", "_enrich/policy" });
internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
+ internal static ApiUrls EqlDelete = new ApiUrls(new[] { "_eql/search/{id}" });
+ internal static ApiUrls EqlGet = new ApiUrls(new[] { "_eql/search/{id}" });
+ internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" });
+ internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" });
internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "{index}/_source/{id}" });
+ internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "{index}/_explain/{id}" });
internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" });
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" });
@@ -58,19 +64,18 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" });
internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
- internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "_template/{name}" });
internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "_alias/{name}", "{index}/_alias/{name}" });
internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" });
- internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "_template/{name}" });
internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "{index}/_lifecycle/explain" });
+ internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "_flush", "{index}/_flush" });
+ internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "_forcemerge", "{index}/_forcemerge" });
internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" });
internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" });
internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" });
internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" });
internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" });
- internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" });
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" });
internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" });
@@ -79,6 +84,7 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" });
+ internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "_index_template/_simulate_index/{name}" });
internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "_index_template/_simulate", "_index_template/_simulate/{name}" });
@@ -99,12 +105,23 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "" });
internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "_scripts/{id}", "_scripts/{id}/{context}" });
internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[] { "_rank_eval", "{index}/_rank_eval" });
+ internal static ApiUrls NoNamespaceReindex = new ApiUrls(new[] { "_reindex" });
+ internal static ApiUrls NoNamespaceReindexRethrottle = new ApiUrls(new[] { "_reindex/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[] { "_render/template", "_render/template/{id}" });
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "_search/scroll" });
internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "_search", "{index}/_search" });
internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" });
+ internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "_sql/close" });
+ internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "_sql/async/delete/{id}" });
+ internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "_sql/async/{id}" });
+ internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "_sql/async/status/{id}" });
+ internal static ApiUrls SqlQuery = new ApiUrls(new[] { "_sql" });
+ internal static ApiUrls TasksCancel = new ApiUrls(new[] { "_tasks/_cancel", "_tasks/{task_id}/_cancel" });
+ internal static ApiUrls TasksGet = new ApiUrls(new[] { "_tasks/{task_id}" });
+ internal static ApiUrls TasksList = new ApiUrls(new[] { "_tasks" });
internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "{index}/_terms_enum" });
internal static ApiUrls NoNamespaceTermvectors = new ApiUrls(new[] { "{index}/_termvectors/{id}", "{index}/_termvectors" });
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
+ internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs
index 98072bac216..d78c9ef5e29 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs
@@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class BulkRequestParameters : RequestParameters
{
///
- /// The pipeline id to preprocess incoming documents with
+ /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); }
///
- /// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
+ /// If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specific routing value
+ /// Custom value used to route operations to a specific shard.
///
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
+ /// `true` or `false` to return the `_source` field or not, or a list of fields to return.
///
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); }
///
- /// Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
+ /// A comma-separated list of source fields to exclude from the response.
///
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); }
///
- /// Default list of fields to extract and return from the _source field, can be overridden on each sub-request
+ /// A comma-separated list of source fields to include in the response.
///
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); }
///
- /// Explicit operation timeout
+ /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
///
- /// Sets require_alias for all incoming documents. Defaults to unset (false)
+ /// If `true`, the request’s actions must target an index alias.
///
public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); }
}
///
-/// Allows to perform multiple index/update/delete operations in a single request.
+/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequest : PlainRequest
{
@@ -99,62 +99,62 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) :
internal override string OperationName => "bulk";
///
- /// The pipeline id to preprocess incoming documents with
+ /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore]
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); }
///
- /// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
+ /// If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specific routing value
+ /// Custom value used to route operations to a specific shard.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
+ /// `true` or `false` to return the `_source` field or not, or a list of fields to return.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); }
///
- /// Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
+ /// A comma-separated list of source fields to exclude from the response.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); }
///
- /// Default list of fields to extract and return from the _source field, can be overridden on each sub-request
+ /// A comma-separated list of source fields to include in the response.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); }
///
- /// Explicit operation timeout
+ /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
///
- /// Sets require_alias for all incoming documents. Defaults to unset (false)
+ /// If `true`, the request’s actions must target an index alias.
///
[JsonIgnore]
public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); }
}
///
-/// Allows to perform multiple index/update/delete operations in a single request.
+/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor, BulkRequestParameters>
{
@@ -194,7 +194,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Allows to perform multiple index/update/delete operations in a single request.
+/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs
index 5546255a367..f8eae2bc7aa 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs
@@ -34,7 +34,7 @@ public sealed class ClearScrollRequestParameters : RequestParameters
}
///
-/// Explicitly clears the search context for a scroll.
+/// Clears the search context and results for a scrolling search.
///
public sealed partial class ClearScrollRequest : PlainRequest
{
@@ -46,12 +46,15 @@ public sealed partial class ClearScrollRequest : PlainRequest "clear_scroll";
+ ///
+ /// Scroll IDs to clear.
To clear all scroll IDs, use `_all`.
+ ///
[JsonInclude, JsonPropertyName("scroll_id")]
public Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollId { get; set; }
}
///
-/// Explicitly clears the search context for a scroll.
+/// Clears the search context and results for a scrolling search.
///
public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor
{
@@ -71,6 +74,9 @@ public ClearScrollRequestDescriptor()
private Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollIdValue { get; set; }
+ ///
+ /// Scroll IDs to clear.
To clear all scroll IDs, use `_all`.
+ ///
public ClearScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.Serverless.ScrollIds? scrollId)
{
ScrollIdValue = scrollId;
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs
index 29127cd766f..6d990a5d10f 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs
@@ -34,7 +34,7 @@ public sealed class ClosePointInTimeRequestParameters : RequestParameters
}
///
-/// Close a point in time
+/// Closes a point-in-time.
///
public sealed partial class ClosePointInTimeRequest : PlainRequest
{
@@ -46,12 +46,15 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest "close_point_in_time";
+ ///
+ /// The ID of the point-in-time.
+ ///
[JsonInclude, JsonPropertyName("id")]
public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; }
}
///
-/// Close a point in time
+/// Closes a point-in-time.
///
public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor
{
@@ -71,6 +74,9 @@ public ClosePointInTimeRequestDescriptor()
private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; }
+ ///
+ /// The ID of the point-in-time.
+ ///
public ClosePointInTimeRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
{
IdValue = id;
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs
index 6a07cd81e8a..9f7368a5a2e 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs
@@ -32,72 +32,72 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class CountRequestParameters : RequestParameters
{
///
- /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
+ /// If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
This behavior applies even if the request targets other open indices.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
///
- /// The analyzer to use for the query string
+ /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); }
///
- /// Specify whether wildcard and prefix queries should be analyzed (default: false)
+ /// If `true`, wildcard and prefix queries are analyzed.
This parameter can only be used when the `q` query string parameter is specified.
///
public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); }
///
- /// The default operator for query string query (AND or OR)
+ /// The default operator for query string query: `AND` or `OR`.
This parameter can only be used when the `q` query string parameter is specified.
///
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); }
///
- /// The field to use as default where no field prefix is given in the query string
+ /// Field to use as default where no field prefix is given in the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Df { get => Q("df"); set => Q("df", value); }
///
- /// Whether to expand wildcard expression to concrete indices that are open, closed or both.
+ /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
///
- /// Whether specified concrete, expanded or aliased indices should be ignored when throttled
+ /// If `true`, concrete, expanded or aliased indices are ignored when frozen.
///
public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); }
///
- /// Whether specified concrete indices should be ignored when unavailable (missing or closed)
+ /// If `false`, the request returns an error if it targets a missing or closed index.
///
public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
///
- /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
+ /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.
///
public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); }
///
- /// Include only documents with a specific `_score` value in the result
+ /// Sets the minimum `_score` value that documents must have to be included in the result.
///
public double? MinScore { get => Q("min_score"); set => Q("min_score", value); }
///
- /// Specify the node or shard the operation should be performed on (default: random)
+ /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); }
///
- /// A comma-separated list of specific routing values
+ /// Custom value used to route operations to a specific shard.
///
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// The maximum count for each shard, upon reaching which the query execution will terminate early
+ /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); }
///
- /// Query in the Lucene query string syntax
+ /// Query in the Lucene query string syntax.
///
public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); }
}
@@ -124,88 +124,92 @@ public CountRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) :
internal override string OperationName => "count";
///
- /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
+ /// If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
This behavior applies even if the request targets other open indices.
///
[JsonIgnore]
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
///
- /// The analyzer to use for the query string
+ /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore]
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); }
///
- /// Specify whether wildcard and prefix queries should be analyzed (default: false)
+ /// If `true`, wildcard and prefix queries are analyzed.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore]
public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); }
///
- /// The default operator for query string query (AND or OR)
+ /// The default operator for query string query: `AND` or `OR`.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); }
///
- /// The field to use as default where no field prefix is given in the query string
+ /// Field to use as default where no field prefix is given in the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore]
public string? Df { get => Q("df"); set => Q("df", value); }
///
- /// Whether to expand wildcard expression to concrete indices that are open, closed or both.
+ /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
///
[JsonIgnore]
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
///
- /// Whether specified concrete, expanded or aliased indices should be ignored when throttled
+ /// If `true`, concrete, expanded or aliased indices are ignored when frozen.
///
[JsonIgnore]
public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); }
///
- /// Whether specified concrete indices should be ignored when unavailable (missing or closed)
+ /// If `false`, the request returns an error if it targets a missing or closed index.
///
[JsonIgnore]
public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
///
- /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
+ /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.
///
[JsonIgnore]
public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); }
///
- /// Include only documents with a specific `_score` value in the result
+ /// Sets the minimum `_score` value that documents must have to be included in the result.
///
[JsonIgnore]
public double? MinScore { get => Q("min_score"); set => Q("min_score", value); }
///
- /// Specify the node or shard the operation should be performed on (default: random)
+ /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore]
public string? Preference { get => Q("preference"); set => Q("preference", value); }
///
- /// A comma-separated list of specific routing values
+ /// Custom value used to route operations to a specific shard.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// The maximum count for each shard, upon reaching which the query execution will terminate early
+ /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
///
[JsonIgnore]
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); }
///
- /// Query in the Lucene query string syntax
+ /// Query in the Lucene query string syntax.
///
[JsonIgnore]
public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); }
+
+ ///
+ /// Defines the search definition using the Query DSL.
+ ///
[JsonInclude, JsonPropertyName("query")]
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; }
}
@@ -258,6 +262,9 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.S
private QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
private Action> QueryDescriptorAction { get; set; }
+ ///
+ /// Defines the search definition using the Query DSL.
+ ///
public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query)
{
QueryDescriptor = null;
@@ -353,6 +360,9 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.I
private QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
private Action QueryDescriptorAction { get; set; }
+ ///
+ /// Defines the search definition using the Query DSL.
+ ///
public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query)
{
QueryDescriptor = null;
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs
index b17552ddfa4..9f21d8c8336 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs
@@ -32,44 +32,43 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class CreateRequestParameters : RequestParameters
{
///
- /// The pipeline id to preprocess incoming documents with
+ /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); }
///
- /// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
+ /// If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specific routing value
+ /// Custom value used to route operations to a specific shard.
///
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// Explicit operation timeout
+ /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Explicit version number for concurrency control
+ /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); }
///
- /// Specific version type
+ /// Specific version type: `external`, `external_gte`.
///
public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
}
///
-/// Creates a new document in the index.
-/// Returns a 409 response when a document with a same ID already exists in the index.
+/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequest : PlainRequest
{
@@ -89,51 +88,50 @@ public CreateRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E
public TDocument Document { get; set; }
///
- /// The pipeline id to preprocess incoming documents with
+ /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore]
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); }
///
- /// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
+ /// If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specific routing value
+ /// Custom value used to route operations to a specific shard.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// Explicit operation timeout
+ /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Explicit version number for concurrency control
+ /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore]
public long? Version { get => Q("version"); set => Q("version", value); }
///
- /// Specific version type
+ /// Specific version type: `external`, `external_gte`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
}
///
-/// Creates a new document in the index.
-/// Returns a 409 response when a document with a same ID already exists in the index.
+/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequestDescriptor : RequestDescriptor, CreateRequestParameters>
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs
index 836b7e08810..01c1a3486b5 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs
@@ -32,37 +32,37 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class DeleteByQueryRequestParameters : RequestParameters
{
///
- /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
+ /// If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
This behavior applies even if the request targets other open indices.
For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
///
- /// The analyzer to use for the query string
+ /// Analyzer to use for the query string.
///
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); }
///
- /// Specify whether wildcard and prefix queries should be analyzed (default: false)
+ /// If `true`, wildcard and prefix queries are analyzed.
///
public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); }
///
- /// What to do when the delete by query hits version conflicts?
+ /// What to do if delete by query hits version conflicts: `abort` or `proceed`.
///
public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); }
///
- /// The default operator for query string query (AND or OR)
+ /// The default operator for query string query: `AND` or `OR`.
///
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); }
///
- /// The field to use as default where no field prefix is given in the query string
+ /// Field to use as default where no field prefix is given in the query string.
///
public string? Df { get => Q("df"); set => Q("df", value); }
///
- /// Whether to expand wildcard expression to concrete indices that are open, closed or both.
+ /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -72,108 +72,108 @@ public sealed class DeleteByQueryRequestParameters : RequestParameters
public long? From { get => Q("from"); set => Q("from", value); }
///
- /// Whether specified concrete indices should be ignored when unavailable (missing or closed)
+ /// If `false`, the request returns an error if it targets a missing or closed index.
///
public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
///
- /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
+ /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.
///
public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); }
///
- /// Specify the node or shard the operation should be performed on (default: random)
+ /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); }
///
- /// Should the affected indexes be refreshed?
+ /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes.
///
public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specify if request cache should be used for this request or not, defaults to index level setting
+ /// If `true`, the request cache is used for this request.
Defaults to the index-level setting.
///
public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); }
///
- /// The throttle for this request in sub-requests per second. -1 means no throttle.
+ /// The throttle for this request in sub-requests per second.
///
public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); }
///
- /// A comma-separated list of specific routing values
+ /// Custom value used to route operations to a specific shard.
///
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// Query in the Lucene query string syntax
+ /// Query in the Lucene query string syntax.
///
public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); }
///
- /// Specify how long a consistent view of the index should be maintained for scrolled search
+ /// Period to retain the search context for scrolling.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); }
///
- /// Size on the scroll request powering the delete by query
+ /// Size of the scroll request that powers the operation.
///
public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); }
///
- /// Explicit timeout for each search request. Defaults to no timeout.
+ /// Explicit timeout for each search request.
Defaults to no timeout.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); }
///
- /// Search operation type
+ /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); }
///
- /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`.
+ /// The number of slices this task should be divided into.
///
public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); }
///
- /// A comma-separated list of : pairs
+ /// A comma-separated list of : pairs.
///
public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); }
///
- /// Specific 'tag' of the request for logging and statistical purposes
+ /// Specific `tag` of the request for logging and statistical purposes.
///
public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); }
///
- /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
+ /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); }
///
- /// Time each individual bulk request should wait for shards that are unavailable.
+ /// Period each deletion request waits for active shards.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Specify whether to return document version as part of a hit
+ /// If `true`, returns the document version as part of a hit.
///
public bool? Version { get => Q("version"); set => Q("version", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
///
- /// Should the request should block until the delete by query is complete.
+ /// If `true`, the request blocks until the operation is complete.
///
public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); }
}
///
-/// Deletes documents matching the provided query.
+/// Deletes documents that match the specified query.
///
public sealed partial class DeleteByQueryRequest : PlainRequest
{
@@ -190,43 +190,43 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind
internal override string OperationName => "delete_by_query";
///
- /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
+ /// If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
This behavior applies even if the request targets other open indices.
For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
///
[JsonIgnore]
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
///
- /// The analyzer to use for the query string
+ /// Analyzer to use for the query string.
///
[JsonIgnore]
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); }
///
- /// Specify whether wildcard and prefix queries should be analyzed (default: false)
+ /// If `true`, wildcard and prefix queries are analyzed.
///
[JsonIgnore]
public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); }
///
- /// What to do when the delete by query hits version conflicts?
+ /// What to do if delete by query hits version conflicts: `abort` or `proceed`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); }
///
- /// The default operator for query string query (AND or OR)
+ /// The default operator for query string query: `AND` or `OR`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); }
///
- /// The field to use as default where no field prefix is given in the query string
+ /// Field to use as default where no field prefix is given in the query string.
///
[JsonIgnore]
public string? Df { get => Q("df"); set => Q("df", value); }
///
- /// Whether to expand wildcard expression to concrete indices that are open, closed or both.
+ /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore]
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -238,134 +238,146 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind
public long? From { get => Q("from"); set => Q("from", value); }
///
- /// Whether specified concrete indices should be ignored when unavailable (missing or closed)
+ /// If `false`, the request returns an error if it targets a missing or closed index.
///
[JsonIgnore]
public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
///
- /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
+ /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.
///
[JsonIgnore]
public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); }
///
- /// Specify the node or shard the operation should be performed on (default: random)
+ /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore]
public string? Preference { get => Q("preference"); set => Q("preference", value); }
///
- /// Should the affected indexes be refreshed?
+ /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes.
///
[JsonIgnore]
public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specify if request cache should be used for this request or not, defaults to index level setting
+ /// If `true`, the request cache is used for this request.
Defaults to the index-level setting.
///
[JsonIgnore]
public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); }
///
- /// The throttle for this request in sub-requests per second. -1 means no throttle.
+ /// The throttle for this request in sub-requests per second.
///
[JsonIgnore]
public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); }
///
- /// A comma-separated list of specific routing values
+ /// Custom value used to route operations to a specific shard.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// Query in the Lucene query string syntax
+ /// Query in the Lucene query string syntax.
///
[JsonIgnore]
public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); }
///
- /// Specify how long a consistent view of the index should be maintained for scrolled search
+ /// Period to retain the search context for scrolling.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); }
///
- /// Size on the scroll request powering the delete by query
+ /// Size of the scroll request that powers the operation.
///
[JsonIgnore]
public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); }
///
- /// Explicit timeout for each search request. Defaults to no timeout.
+ /// Explicit timeout for each search request.
Defaults to no timeout.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); }
///
- /// Search operation type
+ /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); }
///
- /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`.
+ /// The number of slices this task should be divided into.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); }
///
- /// A comma-separated list of : pairs
+ /// A comma-separated list of : pairs.
///
[JsonIgnore]
public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); }
///
- /// Specific 'tag' of the request for logging and statistical purposes
+ /// Specific `tag` of the request for logging and statistical purposes.
///
[JsonIgnore]
public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); }
///
- /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
+ /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
[JsonIgnore]
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); }
///
- /// Time each individual bulk request should wait for shards that are unavailable.
+ /// Period each deletion request waits for active shards.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Specify whether to return document version as part of a hit
+ /// If `true`, returns the document version as part of a hit.
///
[JsonIgnore]
public bool? Version { get => Q("version"); set => Q("version", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
///
- /// Should the request should block until the delete by query is complete.
+ /// If `true`, the request blocks until the operation is complete.
///
[JsonIgnore]
public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); }
+
+ ///
+ /// The maximum number of documents to delete.
+ ///
[JsonInclude, JsonPropertyName("max_docs")]
public long? MaxDocs { get; set; }
+
+ ///
+ /// Specifies the documents to delete using the Query DSL.
+ ///
[JsonInclude, JsonPropertyName("query")]
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; }
+
+ ///
+ /// Slice the request manually using the provided slice ID and total number of slices.
+ ///
[JsonInclude, JsonPropertyName("slice")]
public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; }
}
///
-/// Deletes documents matching the provided query.
+/// Deletes documents that match the specified query.
///
public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor, DeleteByQueryRequestParameters>
{
@@ -430,6 +442,9 @@ public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elastic
private Action> SliceDescriptorAction { get; set; }
private long? MaxDocsValue { get; set; }
+ ///
+ /// Specifies the documents to delete using the Query DSL.
+ ///
public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query)
{
QueryDescriptor = null;
@@ -454,6 +469,9 @@ public DeleteByQueryRequestDescriptor Query(Action
+ /// Slice the request manually using the provided slice ID and total number of slices.
+ ///
public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice)
{
SliceDescriptor = null;
@@ -478,6 +496,9 @@ public DeleteByQueryRequestDescriptor Slice(Action
+ /// The maximum number of documents to delete.
+ ///
public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs)
{
MaxDocsValue = maxDocs;
@@ -530,7 +551,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Deletes documents matching the provided query.
+/// Deletes documents that match the specified query.
///
public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor
{
@@ -595,6 +616,9 @@ public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serv
private Action SliceDescriptorAction { get; set; }
private long? MaxDocsValue { get; set; }
+ ///
+ /// Specifies the documents to delete using the Query DSL.
+ ///
public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query)
{
QueryDescriptor = null;
@@ -619,6 +643,9 @@ public DeleteByQueryRequestDescriptor Query(Action con
return Self;
}
+ ///
+ /// Slice the request manually using the provided slice ID and total number of slices.
+ ///
public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice)
{
SliceDescriptor = null;
@@ -643,6 +670,9 @@ public DeleteByQueryRequestDescriptor Slice(Action confi
return Self;
}
+ ///
+ /// The maximum number of documents to delete.
+ ///
public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs)
{
MaxDocsValue = maxDocs;
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs
new file mode 100644
index 00000000000..03cb3874620
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs
@@ -0,0 +1,98 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless;
+
+public sealed class DeleteByQueryRethrottleRequestParameters : RequestParameters
+{
+ ///
+ /// The throttle for this request in sub-requests per second.
+ ///
+ public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); }
+}
+
+///
+/// Changes the number of requests per second for a particular Delete By Query operation.
+///
+public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest
+{
+ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id) : base(r => r.Required("task_id", task_id))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQueryRethrottle;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "delete_by_query_rethrottle";
+
+ ///
+ /// The throttle for this request in sub-requests per second.
+ ///
+ [JsonIgnore]
+ public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); }
+}
+
+///
+/// Changes the number of requests per second for a particular Delete By Query operation.
+///
+public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor
+{
+ internal DeleteByQueryRethrottleRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public DeleteByQueryRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id) : base(r => r.Required("task_id", task_id))
+ {
+ }
+
+ internal DeleteByQueryRethrottleRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQueryRethrottle;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "delete_by_query_rethrottle";
+
+ public DeleteByQueryRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond);
+
+ public DeleteByQueryRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id)
+ {
+ RouteValues.Required("task_id", task_id);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs
new file mode 100644
index 00000000000..a9911ab7330
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs
@@ -0,0 +1,46 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless;
+
+public sealed partial class DeleteByQueryRethrottleResponse : ElasticsearchResponse
+{
+ [JsonInclude, JsonPropertyName("node_failures")]
+ public IReadOnlyCollection? NodeFailures { get; init; }
+
+ ///
+ /// Task information grouped by node, if `group_by` was set to `node` (the default).
+ ///
+ [JsonInclude, JsonPropertyName("nodes")]
+ public IReadOnlyDictionary? Nodes { get; init; }
+ [JsonInclude, JsonPropertyName("task_failures")]
+ public IReadOnlyCollection? TaskFailures { get; init; }
+
+ ///
+ /// Either a flat list of tasks if `group_by` was set to `none`, or grouped by parents if
`group_by` was set to `parents`.
+ ///
+ [JsonInclude, JsonPropertyName("tasks")]
+ public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfos? Tasks { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs
index 616feba89a5..ea464e9da2e 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs
@@ -32,48 +32,48 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class DeleteRequestParameters : RequestParameters
{
///
- /// only perform the delete operation if the last operation that has changed the document has the specified primary term
+ /// Only perform the operation if the document has this primary term.
///
public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); }
///
- /// only perform the delete operation if the last operation that has changed the document has the specified sequence number
+ /// Only perform the operation if the document has this sequence number.
///
public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); }
///
- /// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
+ /// If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specific routing value
+ /// Custom value used to route operations to a specific shard.
///
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// Explicit operation timeout
+ /// Period to wait for active shards.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Explicit version number for concurrency control
+ /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); }
///
- /// Specific version type
+ /// Specific version type: `external`, `external_gte`.
///
public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
}
///
-/// Removes a document from the index.
+/// Removes a JSON document from the specified index.
///
public partial class DeleteRequest : PlainRequest
{
@@ -90,56 +90,56 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E
internal override string OperationName => "delete";
///
- /// only perform the delete operation if the last operation that has changed the document has the specified primary term
+ /// Only perform the operation if the document has this primary term.
///
[JsonIgnore]
public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); }
///
- /// only perform the delete operation if the last operation that has changed the document has the specified sequence number
+ /// Only perform the operation if the document has this sequence number.
///
[JsonIgnore]
public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); }
///
- /// If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
+ /// If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); }
///
- /// Specific routing value
+ /// Custom value used to route operations to a specific shard.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
///
- /// Explicit operation timeout
+ /// Period to wait for active shards.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
///
- /// Explicit version number for concurrency control
+ /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore]
public long? Version { get => Q("version"); set => Q("version", value); }
///
- /// Specific version type
+ /// Specific version type: `external`, `external_gte`.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); }
///
- /// Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
+ /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
}
///
-/// Removes a document from the index.
+/// Removes a JSON document from the specified index.
///
public sealed partial class DeleteRequestDescriptor : RequestDescriptor, DeleteRequestParameters>
{
@@ -208,7 +208,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Removes a document from the index.
+/// Removes a JSON document from the specified index.
///
public sealed partial class DeleteRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs
index ad5786488be..45659bd3a4c 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs
@@ -32,18 +32,18 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class DeleteScriptRequestParameters : RequestParameters
{
///
- /// Specify timeout for connection to master
+ /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
///
- /// Explicit operation timeout
+ /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
}
///
-/// Deletes a script.
+/// Deletes a stored script or search template.
///
public sealed partial class DeleteScriptRequest : PlainRequest
{
@@ -60,20 +60,20 @@ public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : bas
internal override string OperationName => "delete_script";
///
- /// Specify timeout for connection to master
+ /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); }
///
- /// Explicit operation timeout
+ /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); }
}
///
-/// Deletes a script.
+/// Deletes a stored script or search template.
///
public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor, DeleteScriptRequestParameters>
{
@@ -110,7 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}
///
-/// Deletes a script.
+/// Deletes a stored script or search template.
///
public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor
{
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs
new file mode 100644
index 00000000000..2f1de560e97
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs
@@ -0,0 +1,120 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Eql;
+
+public sealed class EqlDeleteRequestParameters : RequestParameters
+{
+}
+
+///
+/// Deletes an async EQL search or a stored synchronous EQL search.
The API also deletes results for the search.
+///
+public sealed partial class EqlDeleteRequest : PlainRequest
+{
+ public EqlDeleteRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "eql.delete";
+}
+
+///
+/// Deletes an async EQL search or a stored synchronous EQL search.
The API also deletes results for the search.
+///
+public sealed partial class EqlDeleteRequestDescriptor : RequestDescriptor, EqlDeleteRequestParameters>
+{
+ internal EqlDeleteRequestDescriptor(Action> configure) => configure.Invoke(this);
+
+ public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
+ {
+ }
+
+ internal EqlDeleteRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "eql.delete";
+
+ public EqlDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
+ {
+ RouteValues.Required("id", id);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
+
+///
+/// Deletes an async EQL search or a stored synchronous EQL search.
The API also deletes results for the search.
+///
+public sealed partial class EqlDeleteRequestDescriptor : RequestDescriptor
+{
+ internal EqlDeleteRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
+ {
+ }
+
+ internal EqlDeleteRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "eql.delete";
+
+ public EqlDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
+ {
+ RouteValues.Required("id", id);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs
similarity index 92%
rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs
rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs
index 019344012a7..e7a5948b4ff 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs
@@ -23,9 +23,9 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
-namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
+namespace Elastic.Clients.Elasticsearch.Serverless.Eql;
-public sealed partial class DeleteTemplateResponse : ElasticsearchResponse
+public sealed partial class EqlDeleteResponse : ElasticsearchResponse
{
///
/// For a successful response, this value is always true. On failure, an exception is returned instead.
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs
new file mode 100644
index 00000000000..2b1e1adaa37
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs
@@ -0,0 +1,147 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Eql;
+
+public sealed class EqlGetRequestParameters : RequestParameters
+{
+ ///
+ /// Period for which the search and its results are stored on the cluster.
Defaults to the keep_alive value set by the search’s EQL search API request.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); }
+
+ ///
+ /// Timeout duration to wait for the request to finish.
Defaults to no timeout, meaning the request waits for complete search results.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); }
+}
+
+///
+/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search.
+///
+public sealed partial class EqlGetRequest : PlainRequest
+{
+ public EqlGetRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "eql.get";
+
+ ///
+ /// Period for which the search and its results are stored on the cluster.
Defaults to the keep_alive value set by the search’s EQL search API request.
+ ///
+ [JsonIgnore]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); }
+
+ ///
+ /// Timeout duration to wait for the request to finish.
Defaults to no timeout, meaning the request waits for complete search results.
+ ///
+ [JsonIgnore]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); }
+}
+
+///
+/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search.
+///
+public sealed partial class EqlGetRequestDescriptor : RequestDescriptor, EqlGetRequestParameters>
+{
+ internal EqlGetRequestDescriptor(Action> configure) => configure.Invoke(this);
+
+ public EqlGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
+ {
+ }
+
+ internal EqlGetRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "eql.get";
+
+ public EqlGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
+ public EqlGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout);
+
+ public EqlGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
+ {
+ RouteValues.Required("id", id);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
+
+///
+/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search.
+///
+public sealed partial class EqlGetRequestDescriptor : RequestDescriptor
+{
+ internal EqlGetRequestDescriptor(Action configure) => configure.Invoke(this);
+
+ public EqlGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
+ {
+ }
+
+ internal EqlGetRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
+
+ internal override bool SupportsBody => false;
+
+ internal override string OperationName => "eql.get";
+
+ public EqlGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
+ public EqlGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout);
+
+ public EqlGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
+ {
+ RouteValues.Required("id", id);
+ return Self;
+ }
+
+ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs
new file mode 100644
index 00000000000..fb2096cfade
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs
@@ -0,0 +1,65 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport.Products.Elasticsearch;
+using System.Collections.Generic;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Eql;
+
+public sealed partial class EqlGetResponse : ElasticsearchResponse
+{
+ ///
+ /// Contains matching events and sequences. Also contains related metadata.
+ ///
+ [JsonInclude, JsonPropertyName("hits")]
+ public Elastic.Clients.Elasticsearch.Serverless.Eql.EqlHits Hits { get; init; }
+
+ ///
+ /// Identifier for the search.
+ ///
+ [JsonInclude, JsonPropertyName("id")]
+ public string? Id { get; init; }
+
+ ///
+ /// If true, the response does not contain complete search results.
+ ///
+ [JsonInclude, JsonPropertyName("is_partial")]
+ public bool? IsPartial { get; init; }
+
+ ///
+ /// If true, the search request is still executing.
+ ///
+ [JsonInclude, JsonPropertyName("is_running")]
+ public bool? IsRunning { get; init; }
+
+ ///
+ /// If true, the request timed out before completion.
+ ///
+ [JsonInclude, JsonPropertyName("timed_out")]
+ public bool? TimedOut { get; init; }
+
+ ///
+ /// Milliseconds it took Elasticsearch to execute the request.
+ ///
+ [JsonInclude, JsonPropertyName("took")]
+ public long? Took { get; init; }
+}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs
new file mode 100644
index 00000000000..89eb39e8df3
--- /dev/null
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs
@@ -0,0 +1,921 @@
+// Licensed to Elasticsearch B.V under one or more agreements.
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information.
+//
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// ------------------------------------------------
+//
+// This file is automatically generated.
+// Please do not edit these files manually.
+//
+// ------------------------------------------------
+
+#nullable restore
+
+using Elastic.Clients.Elasticsearch.Serverless.Fluent;
+using Elastic.Clients.Elasticsearch.Serverless.Requests;
+using Elastic.Clients.Elasticsearch.Serverless.Serialization;
+using Elastic.Transport;
+using System;
+using System.Collections.Generic;
+using System.Linq.Expressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Elastic.Clients.Elasticsearch.Serverless.Eql;
+
+public sealed class EqlSearchRequestParameters : RequestParameters
+{
+ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
+ public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
+
+ ///
+ /// If true, missing or closed indices are not included in the response.
+ ///
+ public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
+}
+
+///
+/// Returns results matching a query expressed in Event Query Language (EQL)
+///
+public sealed partial class EqlSearchRequest : PlainRequest
+{
+ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices))
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "eql.search";
+
+ [JsonIgnore]
+ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
+ [JsonIgnore]
+ public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
+
+ ///
+ /// If true, missing or closed indices are not included in the response.
+ ///
+ [JsonIgnore]
+ public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
+
+ ///
+ /// EQL query you wish to run.
+ ///
+ [JsonInclude, JsonPropertyName("query")]
+ public string Query { get; set; }
+ [JsonInclude, JsonPropertyName("case_sensitive")]
+ public bool? CaseSensitive { get; set; }
+
+ ///
+ /// Field containing the event classification, such as process, file, or network.
+ ///
+ [JsonInclude, JsonPropertyName("event_category_field")]
+ public Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryField { get; set; }
+
+ ///
+ /// Field used to sort hits with the same timestamp in ascending order
+ ///
+ [JsonInclude, JsonPropertyName("tiebreaker_field")]
+ public Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerField { get; set; }
+
+ ///
+ /// Field containing event timestamp. Default "@timestamp"
+ ///
+ [JsonInclude, JsonPropertyName("timestamp_field")]
+ public Elastic.Clients.Elasticsearch.Serverless.Field? TimestampField { get; set; }
+
+ ///
+ /// Maximum number of events to search at a time for sequence queries.
+ ///
+ [JsonInclude, JsonPropertyName("fetch_size")]
+ public int? FetchSize { get; set; }
+
+ ///
+ /// Query, written in Query DSL, used to filter the events on which the EQL query runs.
+ ///
+ [JsonInclude, JsonPropertyName("filter"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))]
+ public ICollection? Filter { get; set; }
+ [JsonInclude, JsonPropertyName("keep_alive")]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; set; }
+ [JsonInclude, JsonPropertyName("keep_on_completion")]
+ public bool? KeepOnCompletion { get; set; }
+ [JsonInclude, JsonPropertyName("wait_for_completion_timeout")]
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get; set; }
+
+ ///
+ /// For basic queries, the maximum number of matching events to return. Defaults to 10
+ ///
+ [JsonInclude, JsonPropertyName("size")]
+ public int? Size { get; set; }
+
+ ///
+ /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit.
+ ///
+ [JsonInclude, JsonPropertyName("fields"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormat))]
+ public ICollection? Fields { get; set; }
+ [JsonInclude, JsonPropertyName("result_position")]
+ public Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPosition { get; set; }
+ [JsonInclude, JsonPropertyName("runtime_mappings")]
+ public IDictionary? RuntimeMappings { get; set; }
+}
+
+///
+/// Returns results matching a query expressed in Event Query Language (EQL)
+///
+public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor, EqlSearchRequestParameters>
+{
+ internal EqlSearchRequestDescriptor(Action> configure) => configure.Invoke(this);
+
+ public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices))
+ {
+ }
+
+ internal EqlSearchRequestDescriptor()
+ {
+ }
+
+ internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch;
+
+ protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
+
+ internal override bool SupportsBody => true;
+
+ internal override string OperationName => "eql.search";
+
+ public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices);
+ public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards);
+ public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable);
+
+ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices)
+ {
+ RouteValues.Required("index", indices);
+ return Self;
+ }
+
+ private ICollection? FieldsValue { get; set; }
+ private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; }
+ private Action> FieldsDescriptorAction { get; set; }
+ private Action>[] FieldsDescriptorActions { get; set; }
+ private ICollection? FilterValue { get; set; }
+ private QueryDsl.QueryDescriptor FilterDescriptor { get; set; }
+ private Action> FilterDescriptorAction { get; set; }
+ private Action>[] FilterDescriptorActions { get; set; }
+ private bool? CaseSensitiveValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryFieldValue { get; set; }
+ private int? FetchSizeValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; }
+ private bool? KeepOnCompletionValue { get; set; }
+ private string QueryValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; }
+ private IDictionary? RuntimeMappingsValue { get; set; }
+ private int? SizeValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerFieldValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Field? TimestampFieldValue { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; }
+
+ ///
+ /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit.
+ ///
+ public EqlSearchRequestDescriptor Fields(ICollection? fields)
+ {
+ FieldsDescriptor = null;
+ FieldsDescriptorAction = null;
+ FieldsDescriptorActions = null;
+ FieldsValue = fields;
+ return Self;
+ }
+
+ public EqlSearchRequestDescriptor Fields(QueryDsl.FieldAndFormatDescriptor descriptor)
+ {
+ FieldsValue = null;
+ FieldsDescriptorAction = null;
+ FieldsDescriptorActions = null;
+ FieldsDescriptor = descriptor;
+ return Self;
+ }
+
+ public EqlSearchRequestDescriptor Fields(Action> configure)
+ {
+ FieldsValue = null;
+ FieldsDescriptor = null;
+ FieldsDescriptorActions = null;
+ FieldsDescriptorAction = configure;
+ return Self;
+ }
+
+ public EqlSearchRequestDescriptor Fields(params Action