diff --git a/Elasticsearch.sln b/Elasticsearch.sln
index d362e850907..4bf57fbcf3a 100644
--- a/Elasticsearch.sln
+++ b/Elasticsearch.sln
@@ -57,8 +57,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.ClusterLauncher", "te
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elastic.Clients.Elasticsearch.JsonNetSerializer", "src\Elastic.Clients.Elasticsearch.JsonNetSerializer\Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj", "{8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elastic.Clients.Elasticsearch.Serverless", "src\Elastic.Clients.Elasticsearch.Serverless\Elastic.Clients.Elasticsearch.Serverless.csproj", "{49D7F5A7-AA32-492B-B957-0E3325861F55}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "tests\Tests\Tests.csproj", "{6FD804B2-CE80-41CB-A411-2023F34C18FE}"
EndProject
Global
@@ -107,10 +105,6 @@ Global
{8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|Any CPU.Build.0 = Release|Any CPU
- {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|Any CPU.Build.0 = Release|Any CPU
{6FD804B2-CE80-41CB-A411-2023F34C18FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6FD804B2-CE80-41CB-A411-2023F34C18FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6FD804B2-CE80-41CB-A411-2023F34C18FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -130,7 +124,6 @@ Global
{68D1BFDC-F447-4D2C-AF81-537807636610} = {1FE49D14-216A-41EE-A177-E42BFF53E0DC}
{F6162603-D134-4121-8106-2BA4DAD7350B} = {362B2776-4B29-46AB-B237-56776B5372B6}
{8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7}
- {49D7F5A7-AA32-492B-B957-0E3325861F55} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7}
{6FD804B2-CE80-41CB-A411-2023F34C18FE} = {362B2776-4B29-46AB-B237-56776B5372B6}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
diff --git a/Packages.Serverless.slnf b/Packages.Serverless.slnf
deleted file mode 100644
index 218a457e47d..00000000000
--- a/Packages.Serverless.slnf
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "solution": {
- "path": "Elasticsearch.sln",
- "projects": [
- "src\\Elastic.Clients.Elasticsearch.Serverless\\Elastic.Clients.Elasticsearch.Serverless.csproj"
- ]
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs b/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs
deleted file mode 100644
index cfe03c51617..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// 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.
-
-using System;
-using System.Diagnostics.CodeAnalysis;
-
-using Elastic.Transport;
-using Elastic.Transport.Products.Elasticsearch;
-
-namespace Elastic.Clients.Elasticsearch.Serverless;
-
-internal sealed class ElasticsearchClientProductRegistration : ElasticsearchProductRegistration
-{
- private readonly MetaHeaderProvider _metaHeaderProvider;
-
- public ElasticsearchClientProductRegistration(Type markerType) : base(markerType)
- {
- var identifier = ServiceIdentifier;
- if (!string.IsNullOrEmpty(identifier))
- _metaHeaderProvider = new ServerlessMetaHeaderProvider(markerType, identifier);
- }
-
- public static ElasticsearchClientProductRegistration DefaultForElasticsearchClientsElasticsearch { get; } = new(typeof(ElasticsearchClient));
-
- public override string ServiceIdentifier => "esv";
-
- public override string? DefaultContentType => null; // Prevent base 'ElasticsearchProductRegistration' from sending the compatibility header
-
- public override MetaHeaderProvider MetaHeaderProvider => _metaHeaderProvider;
-
- ///
- /// Elastic.Clients.Elasticsearch handles 404 in its , we do not want the low level client throwing
- /// exceptions
- /// when is enabled for 404's. The client is in charge of
- /// composing paths
- /// so a 404 never signals a wrong URL but a missing entity.
- ///
- public override bool HttpStatusCodeClassifier(HttpMethod method, int statusCode) =>
- statusCode is >= 200 and < 300 or 404;
-
- ///
- /// Makes the low level transport aware of Elastic.Clients.Elasticsearch's
- /// so that it can peek in to its exposed error when reporting failures.
- ///
- public override bool TryGetServerErrorReason(TResponse response, [NotNullWhen(returnValue: true)] out string? reason)
- {
- if (response is not ElasticsearchResponse r)
- return base.TryGetServerErrorReason(response, out reason);
- reason = r.ElasticsearchServerError?.Error?.ToString();
- return !string.IsNullOrEmpty(reason);
- }
-}
-
-public sealed class ServerlessMetaHeaderProvider : MetaHeaderProvider
-{
- private readonly MetaHeaderProducer[] _producers;
-
- ///
- public override MetaHeaderProducer[] Producers => _producers;
-
- public ServerlessMetaHeaderProvider(Type clientType, string serviceIdentifier)
- {
- var version = ReflectionVersionInfo.Create(clientType);
-
- _producers = new MetaHeaderProducer[]
- {
- new DefaultMetaHeaderProducer(version, serviceIdentifier),
- new ApiVersionMetaHeaderProducer(version)
- };
- }
-}
-
-public class ApiVersionMetaHeaderProducer : MetaHeaderProducer
-{
- private readonly string _apiVersion;
-
- public override string HeaderName => "Elastic-Api-Version";
-
- public override string ProduceHeaderValue(BoundConfiguration boundConfiguration, bool isAsync) => _apiVersion;
-
- public ApiVersionMetaHeaderProducer(VersionInfo version)
- {
- var meta = version.Metadata;
-
- if (meta is null || meta.Length != 8)
- {
- _apiVersion = "2023-10-31"; // Fall back to the earliest version
- return;
- }
-
- // Metadata format: 20231031
-
- _apiVersion = $"{meta.Substring(0, 4)}-{meta.Substring(4, 2)}-{meta.Substring(6, 2)}";
- }
-}
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj
deleted file mode 100644
index 8ba54c7ca36..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
- Elastic.Clients.Elasticsearch.Serverless
- Elastic.Clients.Elasticsearch.Serverless - Official Elasticsearch Serverless .NET Client
- elasticsearch;elastic;client;search
-
- This strongly-typed, client library enables working with Elasticsearch Serverless. It is the official client maintained and supported by Elastic.
-
- true
- README.md
-
-
- $(DefineConstants);ELASTICSEARCH_SERVERLESS
-
-
- true
- true
- netstandard2.0;net462;netstandard2.1;net8.0
- true
- true
- annotations
-
-
-
-
-
-
-
-
-
-
-
- <_Parameter1>true
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
deleted file mode 100644
index 3513b8150f9..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
+++ /dev/null
@@ -1,323 +0,0 @@
-// 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
-
-namespace Elastic.Clients.Elasticsearch.Serverless.Requests;
-
-internal static class ApiUrlLookup
-{
- internal static ApiUrls AsyncSearchDelete = new ApiUrls(new[] { "_async_search/{id}" });
- internal static ApiUrls AsyncSearchGet = new ApiUrls(new[] { "_async_search/{id}" });
- internal static ApiUrls AsyncSearchStatus = new ApiUrls(new[] { "_async_search/status/{id}" });
- internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[] { "_async_search", "{index}/_async_search" });
- internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[] { "_cluster/allocation/explain" });
- internal static ApiUrls ClusterDeleteComponentTemplate = new ApiUrls(new[] { "_component_template/{name}" });
- internal static ApiUrls ClusterExistsComponentTemplate = new ApiUrls(new[] { "_component_template/{name}" });
- internal static ApiUrls ClusterGetComponentTemplate = new ApiUrls(new[] { "_component_template", "_component_template/{name}" });
- internal static ApiUrls ClusterGetSettings = new ApiUrls(new[] { "_cluster/settings" });
- internal static ApiUrls ClusterHealth = new ApiUrls(new[] { "_cluster/health", "_cluster/health/{index}" });
- internal static ApiUrls ClusterInfo = new ApiUrls(new[] { "_info/{target}" });
- internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[] { "_cluster/pending_tasks" });
- internal static ApiUrls ClusterPutComponentTemplate = new ApiUrls(new[] { "_component_template/{name}" });
- internal static ApiUrls ClusterStats = new ApiUrls(new[] { "_cluster/stats", "_cluster/stats/nodes/{node_id}" });
- internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
- 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 EnrichStats = new ApiUrls(new[] { "_enrich/_stats" });
- internal static ApiUrls EqlDelete = new ApiUrls(new[] { "_eql/search/{id}" });
- internal static ApiUrls EqlGet = new ApiUrls(new[] { "_eql/search/{id}" });
- internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" });
- internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" });
- internal static ApiUrls EsqlQuery = new ApiUrls(new[] { "_query" });
- internal static ApiUrls GraphExplore = new ApiUrls(new[] { "{index}/_graph/explore" });
- internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "_analyze", "{index}/_analyze" });
- internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "_cache/clear", "{index}/_cache/clear" });
- internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "{index}/_close" });
- internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "{index}" });
- internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
- internal static ApiUrls IndexManagementDataStreamsStats = new ApiUrls(new[] { "_data_stream/_stats", "_data_stream/{name}/_stats" });
- internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" });
- internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" });
- internal static ApiUrls IndexManagementDeleteDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
- internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
- internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
- internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" });
- 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 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 IndexManagementGet = new ApiUrls(new[] { "{index}" });
- 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 IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" });
- internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" });
- internal static ApiUrls IndexManagementGetSettings = new ApiUrls(new[] { "_settings", "{index}/_settings", "{index}/_settings/{name}", "_settings/{name}" });
- internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" });
- internal static ApiUrls IndexManagementModifyDataStream = new ApiUrls(new[] { "_data_stream/_modify" });
- internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" });
- internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" });
- internal static ApiUrls IndexManagementPutDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
- internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
- internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
- internal static ApiUrls IndexManagementPutSettings = new ApiUrls(new[] { "_settings", "{index}/_settings" });
- internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" });
- internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
- internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" });
- internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
- internal static ApiUrls IndexManagementSegments = new ApiUrls(new[] { "_segments", "{index}/_segments" });
- 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}" });
- internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
- internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
- internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
- internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
- internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
- internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
- internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
- internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
- internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" });
- internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
- internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
- internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" });
- internal static ApiUrls IngestGetIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database", "_ingest/ip_location/database/{id}" });
- internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" });
- internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" });
- internal static ApiUrls IngestPutGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
- internal static ApiUrls IngestPutIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" });
- internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
- internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" });
- internal static ApiUrls LicenseManagementGet = new ApiUrls(new[] { "_license" });
- internal static ApiUrls MachineLearningClearTrainedModelDeploymentCache = new ApiUrls(new[] { "_ml/trained_models/{model_id}/deployment/cache/_clear" });
- internal static ApiUrls MachineLearningCloseJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_close" });
- internal static ApiUrls MachineLearningDeleteCalendar = new ApiUrls(new[] { "_ml/calendars/{calendar_id}" });
- internal static ApiUrls MachineLearningDeleteCalendarEvent = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events/{event_id}" });
- internal static ApiUrls MachineLearningDeleteCalendarJob = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/jobs/{job_id}" });
- internal static ApiUrls MachineLearningDeleteDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}" });
- internal static ApiUrls MachineLearningDeleteDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}" });
- internal static ApiUrls MachineLearningDeleteExpiredData = new ApiUrls(new[] { "_ml/_delete_expired_data/{job_id}", "_ml/_delete_expired_data" });
- internal static ApiUrls MachineLearningDeleteFilter = new ApiUrls(new[] { "_ml/filters/{filter_id}" });
- internal static ApiUrls MachineLearningDeleteForecast = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_forecast", "_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}" });
- internal static ApiUrls MachineLearningDeleteJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}" });
- internal static ApiUrls MachineLearningDeleteModelSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" });
- internal static ApiUrls MachineLearningDeleteTrainedModel = new ApiUrls(new[] { "_ml/trained_models/{model_id}" });
- internal static ApiUrls MachineLearningDeleteTrainedModelAlias = new ApiUrls(new[] { "_ml/trained_models/{model_id}/model_aliases/{model_alias}" });
- internal static ApiUrls MachineLearningEstimateModelMemory = new ApiUrls(new[] { "_ml/anomaly_detectors/_estimate_model_memory" });
- internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[] { "_ml/data_frame/_evaluate" });
- internal static ApiUrls MachineLearningExplainDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/_explain", "_ml/data_frame/analytics/{id}/_explain" });
- internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_flush" });
- internal static ApiUrls MachineLearningForecast = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_forecast" });
- internal static ApiUrls MachineLearningGetBuckets = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", "_ml/anomaly_detectors/{job_id}/results/buckets" });
- internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events" });
- internal static ApiUrls MachineLearningGetCalendars = new ApiUrls(new[] { "_ml/calendars", "_ml/calendars/{calendar_id}" });
- internal static ApiUrls MachineLearningGetCategories = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/categories/{category_id}", "_ml/anomaly_detectors/{job_id}/results/categories" });
- internal static ApiUrls MachineLearningGetDatafeeds = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}", "_ml/datafeeds" });
- internal static ApiUrls MachineLearningGetDatafeedStats = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_stats", "_ml/datafeeds/_stats" });
- internal static ApiUrls MachineLearningGetDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}", "_ml/data_frame/analytics" });
- internal static ApiUrls MachineLearningGetDataFrameAnalyticsStats = new ApiUrls(new[] { "_ml/data_frame/analytics/_stats", "_ml/data_frame/analytics/{id}/_stats" });
- internal static ApiUrls MachineLearningGetFilters = new ApiUrls(new[] { "_ml/filters", "_ml/filters/{filter_id}" });
- internal static ApiUrls MachineLearningGetInfluencers = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/influencers" });
- internal static ApiUrls MachineLearningGetJobs = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}", "_ml/anomaly_detectors" });
- internal static ApiUrls MachineLearningGetJobStats = new ApiUrls(new[] { "_ml/anomaly_detectors/_stats", "_ml/anomaly_detectors/{job_id}/_stats" });
- internal static ApiUrls MachineLearningGetMemoryStats = new ApiUrls(new[] { "_ml/memory/_stats", "_ml/memory/{node_id}/_stats" });
- internal static ApiUrls MachineLearningGetModelSnapshots = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "_ml/anomaly_detectors/{job_id}/model_snapshots" });
- internal static ApiUrls MachineLearningGetModelSnapshotUpgradeStats = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade/_stats" });
- internal static ApiUrls MachineLearningGetOverallBuckets = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/overall_buckets" });
- internal static ApiUrls MachineLearningGetRecords = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/records" });
- internal static ApiUrls MachineLearningGetTrainedModels = new ApiUrls(new[] { "_ml/trained_models/{model_id}", "_ml/trained_models" });
- internal static ApiUrls MachineLearningGetTrainedModelsStats = new ApiUrls(new[] { "_ml/trained_models/{model_id}/_stats", "_ml/trained_models/_stats" });
- internal static ApiUrls MachineLearningInferTrainedModel = new ApiUrls(new[] { "_ml/trained_models/{model_id}/_infer" });
- internal static ApiUrls MachineLearningInfo = new ApiUrls(new[] { "_ml/info" });
- internal static ApiUrls MachineLearningOpenJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_open" });
- internal static ApiUrls MachineLearningPostCalendarEvents = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events" });
- internal static ApiUrls MachineLearningPreviewDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/_preview", "_ml/data_frame/analytics/{id}/_preview" });
- internal static ApiUrls MachineLearningPutCalendar = new ApiUrls(new[] { "_ml/calendars/{calendar_id}" });
- internal static ApiUrls MachineLearningPutCalendarJob = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/jobs/{job_id}" });
- internal static ApiUrls MachineLearningPutDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}" });
- internal static ApiUrls MachineLearningPutDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}" });
- internal static ApiUrls MachineLearningPutFilter = new ApiUrls(new[] { "_ml/filters/{filter_id}" });
- internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}" });
- internal static ApiUrls MachineLearningPutTrainedModel = new ApiUrls(new[] { "_ml/trained_models/{model_id}" });
- internal static ApiUrls MachineLearningPutTrainedModelAlias = new ApiUrls(new[] { "_ml/trained_models/{model_id}/model_aliases/{model_alias}" });
- internal static ApiUrls MachineLearningPutTrainedModelDefinitionPart = new ApiUrls(new[] { "_ml/trained_models/{model_id}/definition/{part}" });
- internal static ApiUrls MachineLearningPutTrainedModelVocabulary = new ApiUrls(new[] { "_ml/trained_models/{model_id}/vocabulary" });
- internal static ApiUrls MachineLearningResetJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_reset" });
- internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" });
- internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[] { "_ml/set_upgrade_mode" });
- internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_start" });
- internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}/_start" });
- internal static ApiUrls MachineLearningStartTrainedModelDeployment = new ApiUrls(new[] { "_ml/trained_models/{model_id}/deployment/_start" });
- internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_stop" });
- internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}/_stop" });
- internal static ApiUrls MachineLearningStopTrainedModelDeployment = new ApiUrls(new[] { "_ml/trained_models/{model_id}/deployment/_stop" });
- internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_update" });
- internal static ApiUrls MachineLearningUpdateDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}/_update" });
- internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[] { "_ml/filters/{filter_id}/_update" });
- internal static ApiUrls MachineLearningUpdateJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_update" });
- internal static ApiUrls MachineLearningUpdateModelSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update" });
- internal static ApiUrls MachineLearningUpgradeJobSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade" });
- internal static ApiUrls MachineLearningValidate = new ApiUrls(new[] { "_ml/anomaly_detectors/_validate" });
- internal static ApiUrls MachineLearningValidateDetector = new ApiUrls(new[] { "_ml/anomaly_detectors/_validate/detector" });
- internal static ApiUrls NodesHotThreads = new ApiUrls(new[] { "_nodes/hot_threads", "_nodes/{node_id}/hot_threads" });
- internal static ApiUrls NodesInfo = new ApiUrls(new[] { "_nodes", "_nodes/{node_id}", "_nodes/{metric}", "_nodes/{node_id}/{metric}" });
- internal static ApiUrls NodesStats = new ApiUrls(new[] { "_nodes/stats", "_nodes/{node_id}/stats", "_nodes/stats/{metric}", "_nodes/{node_id}/stats/{metric}", "_nodes/stats/{metric}/{index_metric}", "_nodes/{node_id}/stats/{metric}/{index_metric}" });
- internal static ApiUrls NodesUsage = new ApiUrls(new[] { "_nodes/usage", "_nodes/{node_id}/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage/{metric}" });
- internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "_bulk", "{index}/_bulk" });
- internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "_search/scroll" });
- internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "_pit" });
- internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" });
- internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" });
- internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{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 NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{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}" });
- internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "{index}/_source/{id}" });
- internal static ApiUrls NoNamespaceHealthReport = new ApiUrls(new[] { "_health_report", "_health_report/{feature}" });
- internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "{index}/_doc/{id}", "{index}/_doc" });
- internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "" });
- internal static ApiUrls NoNamespaceMtermvectors = new ApiUrls(new[] { "_mtermvectors", "{index}/_mtermvectors" });
- internal static ApiUrls NoNamespaceMultiGet = new ApiUrls(new[] { "_mget", "{index}/_mget" });
- internal static ApiUrls NoNamespaceMultiSearch = new ApiUrls(new[] { "_msearch", "{index}/_msearch" });
- internal static ApiUrls NoNamespaceMultiSearchTemplate = new ApiUrls(new[] { "_msearch/template", "{index}/_msearch/template" });
- internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "{index}/_pit" });
- 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 NoNamespaceSearchMvt = new ApiUrls(new[] { "{index}/_mvt/{field}/{zoom}/{x}/{y}" });
- internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" });
- 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 NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
- 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 QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
- internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
- internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
- internal static ApiUrls QueryRulesGetRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
- internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" });
- internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
- internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
- internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" });
- internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" });
- internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "_security/_authenticate" });
- internal static ApiUrls SecurityBulkDeleteRole = new ApiUrls(new[] { "_security/role" });
- internal static ApiUrls SecurityBulkPutRole = new ApiUrls(new[] { "_security/role" });
- internal static ApiUrls SecurityClearApiKeyCache = new ApiUrls(new[] { "_security/api_key/{ids}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedPrivileges = new ApiUrls(new[] { "_security/privilege/{application}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedRealms = new ApiUrls(new[] { "_security/realm/{realms}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "_security/role/{name}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedServiceTokens = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache" });
- internal static ApiUrls SecurityCreateApiKey = new ApiUrls(new[] { "_security/api_key" });
- internal static ApiUrls SecurityCreateServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}", "_security/service/{namespace}/{service}/credential/token" });
- internal static ApiUrls SecurityDeletePrivileges = new ApiUrls(new[] { "_security/privilege/{application}/{name}" });
- internal static ApiUrls SecurityDeleteRole = new ApiUrls(new[] { "_security/role/{name}" });
- internal static ApiUrls SecurityDeleteRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}" });
- internal static ApiUrls SecurityDeleteServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}" });
- internal static ApiUrls SecurityDisableUserProfile = new ApiUrls(new[] { "_security/profile/{uid}/_disable" });
- internal static ApiUrls SecurityEnableUserProfile = new ApiUrls(new[] { "_security/profile/{uid}/_enable" });
- internal static ApiUrls SecurityGetApiKey = new ApiUrls(new[] { "_security/api_key" });
- internal static ApiUrls SecurityGetBuiltinPrivileges = new ApiUrls(new[] { "_security/privilege/_builtin" });
- internal static ApiUrls SecurityGetPrivileges = new ApiUrls(new[] { "_security/privilege", "_security/privilege/{application}", "_security/privilege/{application}/{name}" });
- internal static ApiUrls SecurityGetRole = new ApiUrls(new[] { "_security/role/{name}", "_security/role" });
- internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}", "_security/role_mapping" });
- internal static ApiUrls SecurityGetServiceAccounts = new ApiUrls(new[] { "_security/service/{namespace}/{service}", "_security/service/{namespace}", "_security/service" });
- internal static ApiUrls SecurityGetServiceCredentials = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential" });
- internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "_security/oauth2/token" });
- internal static ApiUrls SecurityGetUserPrivileges = new ApiUrls(new[] { "_security/user/_privileges" });
- internal static ApiUrls SecurityGetUserProfile = new ApiUrls(new[] { "_security/profile/{uid}" });
- internal static ApiUrls SecurityGrantApiKey = new ApiUrls(new[] { "_security/api_key/grant" });
- internal static ApiUrls SecurityHasPrivileges = new ApiUrls(new[] { "_security/user/_has_privileges", "_security/user/{user}/_has_privileges" });
- internal static ApiUrls SecurityHasPrivilegesUserProfile = new ApiUrls(new[] { "_security/profile/_has_privileges" });
- internal static ApiUrls SecurityInvalidateApiKey = new ApiUrls(new[] { "_security/api_key" });
- internal static ApiUrls SecurityInvalidateToken = new ApiUrls(new[] { "_security/oauth2/token" });
- internal static ApiUrls SecurityPutPrivileges = new ApiUrls(new[] { "_security/privilege" });
- internal static ApiUrls SecurityPutRole = new ApiUrls(new[] { "_security/role/{name}" });
- internal static ApiUrls SecurityPutRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}" });
- internal static ApiUrls SecurityQueryApiKeys = new ApiUrls(new[] { "_security/_query/api_key" });
- internal static ApiUrls SecurityQueryRole = new ApiUrls(new[] { "_security/_query/role" });
- internal static ApiUrls SecurityQueryUser = new ApiUrls(new[] { "_security/_query/user" });
- internal static ApiUrls SecuritySamlAuthenticate = new ApiUrls(new[] { "_security/saml/authenticate" });
- internal static ApiUrls SecuritySamlCompleteLogout = new ApiUrls(new[] { "_security/saml/complete_logout" });
- internal static ApiUrls SecuritySamlInvalidate = new ApiUrls(new[] { "_security/saml/invalidate" });
- internal static ApiUrls SecuritySamlLogout = new ApiUrls(new[] { "_security/saml/logout" });
- internal static ApiUrls SecuritySamlPrepareAuthentication = new ApiUrls(new[] { "_security/saml/prepare" });
- internal static ApiUrls SecuritySamlServiceProviderMetadata = new ApiUrls(new[] { "_security/saml/metadata/{realm_name}" });
- internal static ApiUrls SecuritySuggestUserProfiles = new ApiUrls(new[] { "_security/profile/_suggest" });
- internal static ApiUrls SecurityUpdateApiKey = new ApiUrls(new[] { "_security/api_key/{id}" });
- internal static ApiUrls SecurityUpdateUserProfileData = new ApiUrls(new[] { "_security/profile/{uid}/_data" });
- internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" });
- internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" });
- internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" });
- internal static ApiUrls SnapshotCreateRepository = new ApiUrls(new[] { "_snapshot/{repository}" });
- internal static ApiUrls SnapshotDelete = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" });
- internal static ApiUrls SnapshotDeleteRepository = new ApiUrls(new[] { "_snapshot/{repository}" });
- internal static ApiUrls SnapshotGet = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" });
- internal static ApiUrls SnapshotGetRepository = new ApiUrls(new[] { "_snapshot", "_snapshot/{repository}" });
- internal static ApiUrls SnapshotLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}" });
- internal static ApiUrls SnapshotLifecycleManagementExecuteLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}/_execute" });
- internal static ApiUrls SnapshotLifecycleManagementExecuteRetention = new ApiUrls(new[] { "_slm/_execute_retention" });
- internal static ApiUrls SnapshotLifecycleManagementGetLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}", "_slm/policy" });
- internal static ApiUrls SnapshotLifecycleManagementGetStats = new ApiUrls(new[] { "_slm/stats" });
- internal static ApiUrls SnapshotLifecycleManagementGetStatus = new ApiUrls(new[] { "_slm/status" });
- internal static ApiUrls SnapshotLifecycleManagementPutLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}" });
- internal static ApiUrls SnapshotLifecycleManagementStart = new ApiUrls(new[] { "_slm/start" });
- internal static ApiUrls SnapshotLifecycleManagementStop = new ApiUrls(new[] { "_slm/stop" });
- internal static ApiUrls SnapshotRestore = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_restore" });
- internal static ApiUrls SnapshotStatus = new ApiUrls(new[] { "_snapshot/_status", "_snapshot/{repository}/_status", "_snapshot/{repository}/{snapshot}/_status" });
- internal static ApiUrls SnapshotVerifyRepository = new ApiUrls(new[] { "_snapshot/{repository}/_verify" });
- 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 SqlTranslate = new ApiUrls(new[] { "_sql/translate" });
- internal static ApiUrls SynonymsDeleteSynonym = new ApiUrls(new[] { "_synonyms/{id}" });
- internal static ApiUrls SynonymsDeleteSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" });
- internal static ApiUrls SynonymsGetSynonym = new ApiUrls(new[] { "_synonyms/{id}" });
- internal static ApiUrls SynonymsGetSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" });
- internal static ApiUrls SynonymsGetSynonymsSets = new ApiUrls(new[] { "_synonyms" });
- internal static ApiUrls SynonymsPutSynonym = new ApiUrls(new[] { "_synonyms/{id}" });
- internal static ApiUrls SynonymsPutSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" });
- internal static ApiUrls TextStructureTestGrokPattern = new ApiUrls(new[] { "_text_structure/test_grok_pattern" });
- internal static ApiUrls TransformManagementDeleteTransform = new ApiUrls(new[] { "_transform/{transform_id}" });
- internal static ApiUrls TransformManagementGetTransform = new ApiUrls(new[] { "_transform/{transform_id}", "_transform" });
- internal static ApiUrls TransformManagementGetTransformStats = new ApiUrls(new[] { "_transform/{transform_id}/_stats" });
- internal static ApiUrls TransformManagementPreviewTransform = new ApiUrls(new[] { "_transform/{transform_id}/_preview", "_transform/_preview" });
- internal static ApiUrls TransformManagementPutTransform = new ApiUrls(new[] { "_transform/{transform_id}" });
- internal static ApiUrls TransformManagementResetTransform = new ApiUrls(new[] { "_transform/{transform_id}/_reset" });
- internal static ApiUrls TransformManagementScheduleNowTransform = new ApiUrls(new[] { "_transform/{transform_id}/_schedule_now" });
- internal static ApiUrls TransformManagementStartTransform = new ApiUrls(new[] { "_transform/{transform_id}/_start" });
- internal static ApiUrls TransformManagementStopTransform = new ApiUrls(new[] { "_transform/{transform_id}/_stop" });
- internal static ApiUrls TransformManagementUpdateTransform = new ApiUrls(new[] { "_transform/{transform_id}/_update" });
- internal static ApiUrls TransformManagementUpgradeTransforms = new ApiUrls(new[] { "_transform/_upgrade" });
- internal static ApiUrls XpackInfo = new ApiUrls(new[] { "_xpack" });
- internal static ApiUrls XpackUsage = new ApiUrls(new[] { "_xpack/usage" });
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs
deleted file mode 100644
index 23a2a730ace..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-// 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 Elastic.Transport.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class AsyncSearchStatusRequestParameters : RequestParameters
-{
- ///
- ///
- /// Specifies how long the async search needs to be available.
- /// Ongoing async searches and any saved search results are deleted after this period.
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); }
-}
-
-///
-///
-/// Get the async search status.
-///
-///
-/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
-/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role.
-///
-///
-public sealed partial class AsyncSearchStatusRequest : PlainRequest
-{
- public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.status";
-
- ///
- ///
- /// Specifies how long the async search needs to be available.
- /// Ongoing async searches and any saved search results are deleted after this period.
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); }
-}
-
-///
-///
-/// Get the async search status.
-///
-///
-/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
-/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role.
-///
-///
-public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor, AsyncSearchStatusRequestParameters>
-{
- internal AsyncSearchStatusRequestDescriptor(Action> configure) => configure.Invoke(this);
-
- public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.status";
-
- public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
-
- public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
- {
- RouteValues.Required("id", id);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
-}
-
-///
-///
-/// Get the async search status.
-///
-///
-/// Get the status of a previously submitted async search request given its identifier, without retrieving search results.
-/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role.
-///
-///
-public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor
-{
- internal AsyncSearchStatusRequestDescriptor(Action configure) => configure.Invoke(this);
-
- public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.status";
-
- public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
-
- public AsyncSearchStatusRequestDescriptor 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/AsyncSearch/AsyncSearchStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs
deleted file mode 100644
index ac935fb70ef..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-// 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;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse
-{
- ///
- ///
- /// Metadata about clusters involved in the cross-cluster search.
- /// Not shown for local-only searches.
- ///
- ///
- [JsonInclude, JsonPropertyName("_clusters")]
- public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; }
-
- ///
- ///
- /// If the async search completed, this field shows the status code of the search.
- /// For example, 200 indicates that the async search was successfully completed.
- /// 503 indicates that the async search was completed with an error.
- ///
- ///
- [JsonInclude, JsonPropertyName("completion_status")]
- public int? CompletionStatus { get; init; }
-
- ///
- ///
- /// Indicates when the async search completed. Only present
- /// when the search has completed.
- ///
- ///
- [JsonInclude, JsonPropertyName("completion_time")]
- public DateTimeOffset? CompletionTime { get; init; }
- [JsonInclude, JsonPropertyName("completion_time_in_millis")]
- public long? CompletionTimeInMillis { get; init; }
-
- ///
- ///
- /// Indicates when the async search will expire.
- ///
- ///
- [JsonInclude, JsonPropertyName("expiration_time")]
- public DateTimeOffset? ExpirationTime { get; init; }
- [JsonInclude, JsonPropertyName("expiration_time_in_millis")]
- public long ExpirationTimeInMillis { get; init; }
- [JsonInclude, JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- ///
- /// When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards.
- /// While the query is running, is_partial is always set to true.
- ///
- ///
- [JsonInclude, JsonPropertyName("is_partial")]
- public bool IsPartial { get; init; }
-
- ///
- ///
- /// Indicates whether the search is still running or has completed.
- /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false.
- ///
- ///
- [JsonInclude, JsonPropertyName("is_running")]
- public bool IsRunning { get; init; }
-
- ///
- ///
- /// Indicates how many shards have run the query so far.
- ///
- ///
- [JsonInclude, JsonPropertyName("_shards")]
- public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; }
- [JsonInclude, JsonPropertyName("start_time")]
- public DateTimeOffset? StartTime { get; init; }
- [JsonInclude, JsonPropertyName("start_time_in_millis")]
- public long StartTimeInMillis { get; init; }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs
deleted file mode 100644
index 3d0db2d1b6f..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs
+++ /dev/null
@@ -1,134 +0,0 @@
-// 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 Elastic.Transport.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class DeleteAsyncSearchRequestParameters : RequestParameters
-{
-}
-
-///
-///
-/// Delete an async search.
-///
-///
-/// If the asynchronous search is still running, it is cancelled.
-/// Otherwise, the saved search results are deleted.
-/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege.
-///
-///
-public sealed partial class DeleteAsyncSearchRequest : PlainRequest
-{
- public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.delete";
-}
-
-///
-///
-/// Delete an async search.
-///
-///
-/// If the asynchronous search is still running, it is cancelled.
-/// Otherwise, the saved search results are deleted.
-/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege.
-///
-///
-public sealed partial class DeleteAsyncSearchRequestDescriptor : RequestDescriptor, DeleteAsyncSearchRequestParameters>
-{
- internal DeleteAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this);
-
- public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.delete";
-
- public DeleteAsyncSearchRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
- {
- RouteValues.Required("id", id);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
-}
-
-///
-///
-/// Delete an async search.
-///
-///
-/// If the asynchronous search is still running, it is cancelled.
-/// Otherwise, the saved search results are deleted.
-/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege.
-///
-///
-public sealed partial class DeleteAsyncSearchRequestDescriptor : RequestDescriptor
-{
- internal DeleteAsyncSearchRequestDescriptor(Action configure) => configure.Invoke(this);
-
- public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.delete";
-
- public DeleteAsyncSearchRequestDescriptor 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/AsyncSearch/DeleteAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs
deleted file mode 100644
index 66a78fb63cb..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class DeleteAsyncSearchResponse : ElasticsearchResponse
-{
- ///
- ///
- /// For a successful response, this value is always true. On failure, an exception is returned instead.
- ///
- ///
- [JsonInclude, JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs
deleted file mode 100644
index 773597370a7..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs
+++ /dev/null
@@ -1,195 +0,0 @@
-// 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 Elastic.Transport.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class GetAsyncSearchRequestParameters : RequestParameters
-{
- ///
- ///
- /// Specifies how long the async search should be available in the cluster.
- /// When not specified, the keep_alive set with the corresponding submit async request will be used.
- /// Otherwise, it is possible to override the value and extend the validity of the request.
- /// When this period expires, the search, if still running, is cancelled.
- /// If the search is completed, its saved results are deleted.
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); }
-
- ///
- ///
- /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response
- ///
- ///
- public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); }
-
- ///
- ///
- /// Specifies to wait for the search to be completed up until the provided timeout.
- /// Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
- /// By default no timeout is set meaning that the currently available results will be returned without any additional wait.
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); }
-}
-
-///
-///
-/// Get async search results.
-///
-///
-/// Retrieve the results of a previously submitted asynchronous search request.
-/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
-///
-///
-public sealed partial class GetAsyncSearchRequest : PlainRequest
-{
- public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.get";
-
- ///
- ///
- /// Specifies how long the async search should be available in the cluster.
- /// When not specified, the keep_alive set with the corresponding submit async request will be used.
- /// Otherwise, it is possible to override the value and extend the validity of the request.
- /// When this period expires, the search, if still running, is cancelled.
- /// If the search is completed, its saved results are deleted.
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); }
-
- ///
- ///
- /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response
- ///
- ///
- [JsonIgnore]
- public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); }
-
- ///
- ///
- /// Specifies to wait for the search to be completed up until the provided timeout.
- /// Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
- /// By default no timeout is set meaning that the currently available results will be returned without any additional wait.
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); }
-}
-
-///
-///
-/// Get async search results.
-///
-///
-/// Retrieve the results of a previously submitted asynchronous search request.
-/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
-///
-///
-public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor, GetAsyncSearchRequestParameters>
-{
- internal GetAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this);
-
- public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.get";
-
- public GetAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
- public GetAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys);
- public GetAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout);
-
- public GetAsyncSearchRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
- {
- RouteValues.Required("id", id);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
-}
-
-///
-///
-/// Get async search results.
-///
-///
-/// Retrieve the results of a previously submitted asynchronous search request.
-/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
-///
-///
-public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor
-{
- internal GetAsyncSearchRequestDescriptor(Action configure) => configure.Invoke(this);
-
- public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
-
- internal override bool SupportsBody => false;
-
- internal override string OperationName => "async_search.get";
-
- public GetAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive);
- public GetAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys);
- public GetAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout);
-
- public GetAsyncSearchRequestDescriptor 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/AsyncSearch/GetAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs
deleted file mode 100644
index a7fd20fd67d..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// 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;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class GetAsyncSearchResponse : ElasticsearchResponse
-{
- ///
- ///
- /// Indicates when the async search completed. Only present
- /// when the search has completed.
- ///
- ///
- [JsonInclude, JsonPropertyName("completion_time")]
- public DateTimeOffset? CompletionTime { get; init; }
- [JsonInclude, JsonPropertyName("completion_time_in_millis")]
- public long? CompletionTimeInMillis { get; init; }
-
- ///
- ///
- /// Indicates when the async search will expire.
- ///
- ///
- [JsonInclude, JsonPropertyName("expiration_time")]
- public DateTimeOffset? ExpirationTime { get; init; }
- [JsonInclude, JsonPropertyName("expiration_time_in_millis")]
- public long ExpirationTimeInMillis { get; init; }
- [JsonInclude, JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- ///
- /// When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards.
- /// While the query is running, is_partial is always set to true.
- ///
- ///
- [JsonInclude, JsonPropertyName("is_partial")]
- public bool IsPartial { get; init; }
-
- ///
- ///
- /// Indicates whether the search is still running or has completed.
- /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false.
- ///
- ///
- [JsonInclude, JsonPropertyName("is_running")]
- public bool IsRunning { get; init; }
- [JsonInclude, JsonPropertyName("response")]
- public Elastic.Clients.Elasticsearch.Serverless.AsyncSearch.AsyncSearch Response { get; init; }
- [JsonInclude, JsonPropertyName("start_time")]
- public DateTimeOffset? StartTime { get; init; }
- [JsonInclude, JsonPropertyName("start_time_in_millis")]
- public long StartTimeInMillis { get; init; }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs
deleted file mode 100644
index da346fb535f..00000000000
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs
+++ /dev/null
@@ -1,3366 +0,0 @@
-// 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 Elastic.Transport.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
-
-public sealed partial class SubmitAsyncSearchRequestParameters : 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)
- ///
- ///
- public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
-
- ///
- ///
- /// Indicate if an error should be returned if there is a partial search failure or timeout
- ///
- ///
- public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); }
-
- ///
- ///
- /// The 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)
- ///
- ///
- public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); }
-
- ///
- ///
- /// Affects how often partial results become available, which happens whenever shard results are reduced.
- /// A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default).
- ///
- ///
- public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); }
-
- ///
- ///
- /// The default value is the only supported value.
- ///
- ///
- public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); }
-
- ///
- ///
- /// 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
- ///
- ///
- public string? Df { get => Q("df"); set => Q("df", value); }
-
- ///
- ///
- /// Whether to expand wildcard expression to concrete indices that are open, closed or both.
- ///
- ///
- public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
-
- ///
- ///
- /// Whether specified concrete, expanded or aliased indices should be ignored when throttled
- ///
- ///
- public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); }
-
- ///
- ///
- /// Whether specified concrete indices should be ignored when unavailable (missing or closed)
- ///
- ///
- public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
-
- ///
- ///
- /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout.
- ///
- ///
- public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); }
-
- ///
- ///
- /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
- ///
- ///
- public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); }
-
- ///
- ///
- /// The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests
- ///
- ///
- public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
-
- ///
- ///
- /// Specify the node or shard the operation should be performed on (default: random)
- ///
- ///
- public string? Preference { get => Q("preference"); set => Q("preference", value); }
-
- ///
- ///
- /// Query in the Lucene query string syntax
- ///
- ///
- public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); }
-
- ///
- ///
- /// Specify if request cache should be used for this request or not, defaults to true
- ///
- ///
- public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); }
-
- ///
- ///
- /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response
- ///
- ///
- public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); }
-
- ///
- ///
- /// A comma-separated list of specific routing values
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
-
- ///
- ///
- /// Search operation type
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); }
-
- ///
- ///
- /// A list of fields to exclude from the returned _source field
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); }
-
- ///
- ///
- /// A list of fields to extract and return from the _source field
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); }
-
- ///
- ///
- /// Specifies which field to use for suggestions.
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); }
-
- ///
- ///
- /// Specify suggest mode
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); }
-
- ///
- ///
- /// How many suggestions to return in response
- ///
- ///
- public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); }
-
- ///
- ///
- /// The source text for which the suggestions should be returned.
- ///
- ///
- public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); }
-
- ///
- ///
- /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response
- ///
- ///
- public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); }
-
- ///
- ///
- /// Blocks and waits until the search is completed up to a certain timeout.
- /// When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster.
- ///
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); }
-}
-
-internal sealed partial class SubmitAsyncSearchRequestConverter : JsonConverter
-{
- public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- if (reader.TokenType != JsonTokenType.StartObject)
- throw new JsonException("Unexpected JSON detected.");
- var variant = new SubmitAsyncSearchRequest();
- while (reader.Read() && reader.TokenType != JsonTokenType.EndObject)
- {
- if (reader.TokenType == JsonTokenType.PropertyName)
- {
- var property = reader.GetString();
- if (property == "aggregations" || property == "aggs")
- {
- variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "collapse")
- {
- variant.Collapse = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "docvalue_fields")
- {
- variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "explain")
- {
- variant.Explain = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "ext")
- {
- variant.Ext = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "fields")
- {
- variant.Fields = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "from")
- {
- variant.From = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "highlight")
- {
- variant.Highlight = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "indices_boost")
- {
- variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options);
- continue;
- }
-
- if (property == "knn")
- {
- variant.Knn = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "min_score")
- {
- variant.MinScore = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "pit")
- {
- variant.Pit = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "post_filter")
- {
- variant.PostFilter = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "profile")
- {
- variant.Profile = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "query")
- {
- variant.Query = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "rescore")
- {
- variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "runtime_mappings")
- {
- variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "script_fields")
- {
- variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "search_after")
- {
- variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "seq_no_primary_term")
- {
- variant.SeqNoPrimaryTerm = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "size")
- {
- variant.Size = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "slice")
- {
- variant.Slice = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "sort")
- {
- variant.Sort = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "_source")
- {
- variant.Source = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "stats")
- {
- variant.Stats = JsonSerializer.Deserialize?>(ref reader, options);
- continue;
- }
-
- if (property == "stored_fields")
- {
- variant.StoredFields = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "suggest")
- {
- variant.Suggest = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "terminate_after")
- {
- variant.TerminateAfter = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "timeout")
- {
- variant.Timeout = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "track_scores")
- {
- variant.TrackScores = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "track_total_hits")
- {
- variant.TrackTotalHits = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
-
- if (property == "version")
- {
- variant.Version = JsonSerializer.Deserialize(ref reader, options);
- continue;
- }
- }
- }
-
- return variant;
- }
-
- public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value, JsonSerializerOptions options)
- {
- writer.WriteStartObject();
- if (value.Aggregations is not null)
- {
- writer.WritePropertyName("aggregations");
- JsonSerializer.Serialize(writer, value.Aggregations, options);
- }
-
- if (value.Collapse is not null)
- {
- writer.WritePropertyName("collapse");
- JsonSerializer.Serialize(writer, value.Collapse, options);
- }
-
- if (value.DocvalueFields is not null)
- {
- writer.WritePropertyName("docvalue_fields");
- JsonSerializer.Serialize(writer, value.DocvalueFields, options);
- }
-
- if (value.Explain.HasValue)
- {
- writer.WritePropertyName("explain");
- writer.WriteBooleanValue(value.Explain.Value);
- }
-
- if (value.Ext is not null)
- {
- writer.WritePropertyName("ext");
- JsonSerializer.Serialize(writer, value.Ext, options);
- }
-
- if (value.Fields is not null)
- {
- writer.WritePropertyName("fields");
- JsonSerializer.Serialize(writer, value.Fields, options);
- }
-
- if (value.From.HasValue)
- {
- writer.WritePropertyName("from");
- writer.WriteNumberValue(value.From.Value);
- }
-
- if (value.Highlight is not null)
- {
- writer.WritePropertyName("highlight");
- JsonSerializer.Serialize(writer, value.Highlight, options);
- }
-
- if (value.IndicesBoost is not null)
- {
- writer.WritePropertyName("indices_boost");
- JsonSerializer.Serialize(writer, value.IndicesBoost, options);
- }
-
- if (value.Knn is not null)
- {
- writer.WritePropertyName("knn");
- JsonSerializer.Serialize(writer, value.Knn, options);
- }
-
- if (value.MinScore.HasValue)
- {
- writer.WritePropertyName("min_score");
- writer.WriteNumberValue(value.MinScore.Value);
- }
-
- if (value.Pit is not null)
- {
- writer.WritePropertyName("pit");
- JsonSerializer.Serialize(writer, value.Pit, options);
- }
-
- if (value.PostFilter is not null)
- {
- writer.WritePropertyName("post_filter");
- JsonSerializer.Serialize(writer, value.PostFilter, options);
- }
-
- if (value.Profile.HasValue)
- {
- writer.WritePropertyName("profile");
- writer.WriteBooleanValue(value.Profile.Value);
- }
-
- if (value.Query is not null)
- {
- writer.WritePropertyName("query");
- JsonSerializer.Serialize(writer, value.Query, options);
- }
-
- if (value.Rescore is not null)
- {
- writer.WritePropertyName("rescore");
- JsonSerializer.Serialize(writer, value.Rescore, options);
- }
-
- if (value.RuntimeMappings is not null)
- {
- writer.WritePropertyName("runtime_mappings");
- JsonSerializer.Serialize(writer, value.RuntimeMappings, options);
- }
-
- if (value.ScriptFields is not null)
- {
- writer.WritePropertyName("script_fields");
- JsonSerializer.Serialize(writer, value.ScriptFields, options);
- }
-
- if (value.SearchAfter is not null)
- {
- writer.WritePropertyName("search_after");
- JsonSerializer.Serialize(writer, value.SearchAfter, options);
- }
-
- if (value.SeqNoPrimaryTerm.HasValue)
- {
- writer.WritePropertyName("seq_no_primary_term");
- writer.WriteBooleanValue(value.SeqNoPrimaryTerm.Value);
- }
-
- if (value.Size.HasValue)
- {
- writer.WritePropertyName("size");
- writer.WriteNumberValue(value.Size.Value);
- }
-
- if (value.Slice is not null)
- {
- writer.WritePropertyName("slice");
- JsonSerializer.Serialize(writer, value.Slice, options);
- }
-
- if (value.Sort is not null)
- {
- writer.WritePropertyName("sort");
- JsonSerializer.Serialize(writer, value.Sort, options);
- }
-
- if (value.Source is not null)
- {
- writer.WritePropertyName("_source");
- JsonSerializer.Serialize(writer, value.Source, options);
- }
-
- if (value.Stats is not null)
- {
- writer.WritePropertyName("stats");
- JsonSerializer.Serialize(writer, value.Stats, options);
- }
-
- if (value.StoredFields is not null)
- {
- writer.WritePropertyName("stored_fields");
- new FieldsConverter().Write(writer, value.StoredFields, options);
- }
-
- if (value.Suggest is not null)
- {
- writer.WritePropertyName("suggest");
- JsonSerializer.Serialize(writer, value.Suggest, options);
- }
-
- if (value.TerminateAfter.HasValue)
- {
- writer.WritePropertyName("terminate_after");
- writer.WriteNumberValue(value.TerminateAfter.Value);
- }
-
- if (!string.IsNullOrEmpty(value.Timeout))
- {
- writer.WritePropertyName("timeout");
- writer.WriteStringValue(value.Timeout);
- }
-
- if (value.TrackScores.HasValue)
- {
- writer.WritePropertyName("track_scores");
- writer.WriteBooleanValue(value.TrackScores.Value);
- }
-
- if (value.TrackTotalHits is not null)
- {
- writer.WritePropertyName("track_total_hits");
- JsonSerializer.Serialize(writer, value.TrackTotalHits, options);
- }
-
- if (value.Version.HasValue)
- {
- writer.WritePropertyName("version");
- writer.WriteBooleanValue(value.Version.Value);
- }
-
- writer.WriteEndObject();
- }
-}
-
-///
-///
-/// Run an async search.
-///
-///
-/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
-///
-///
-/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
-///
-///
-/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
-/// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting.
-///
-///
-[JsonConverter(typeof(SubmitAsyncSearchRequestConverter))]
-public sealed partial class SubmitAsyncSearchRequest : PlainRequest
-{
- public SubmitAsyncSearchRequest()
- {
- }
-
- public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchSubmit;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
-
- internal override bool SupportsBody => true;
-
- internal override string OperationName => "async_search.submit";
-
- ///
- ///
- /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified)
- ///
- ///
- [JsonIgnore]
- public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); }
-
- ///
- ///
- /// Indicate if an error should be returned if there is a partial search failure or timeout
- ///
- ///
- [JsonIgnore]
- public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); }
-
- ///
- ///
- /// The 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)
- ///
- ///
- [JsonIgnore]
- public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); }
-
- ///
- ///
- /// Affects how often partial results become available, which happens whenever shard results are reduced.
- /// A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default).
- ///
- ///
- [JsonIgnore]
- public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); }
-
- ///
- ///
- /// The default value is the only supported value.
- ///
- ///
- [JsonIgnore]
- public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); }
-
- ///
- ///
- /// 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
- ///
- ///
- [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.
- ///
- ///
- [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
- ///
- ///
- [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)
- ///
- ///
- [JsonIgnore]
- public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); }
-
- ///
- ///
- /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout.
- ///
- ///
- [JsonIgnore]
- public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); }
-
- ///
- ///
- /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
- ///
- ///
- [JsonIgnore]
- public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); }
-
- ///
- ///
- /// The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests
- ///
- ///
- [JsonIgnore]
- public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); }
-
- ///
- ///
- /// Specify the node or shard the operation should be performed on (default: random)
- ///
- ///
- [JsonIgnore]
- public string? Preference { get => Q("preference"); set => Q("preference", value); }
-
- ///
- ///
- /// Query in the Lucene query string syntax
- ///
- ///
- [JsonIgnore]
- public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); }
-
- ///
- ///
- /// Specify if request cache should be used for this request or not, defaults to true
- ///
- ///
- [JsonIgnore]
- public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); }
-
- ///
- ///
- /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response
- ///
- ///
- [JsonIgnore]
- public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); }
-
- ///
- ///
- /// A comma-separated list of specific routing values
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); }
-
- ///
- ///
- /// Search operation type
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); }
-
- ///
- ///
- /// A list of fields to exclude from the returned _source field
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); }
-
- ///
- ///
- /// A list of fields to extract and return from the _source field
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); }
-
- ///
- ///
- /// Specifies which field to use for suggestions.
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); }
-
- ///
- ///
- /// Specify suggest mode
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); }
-
- ///
- ///
- /// How many suggestions to return in response
- ///
- ///
- [JsonIgnore]
- public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); }
-
- ///
- ///
- /// The source text for which the suggestions should be returned.
- ///
- ///
- [JsonIgnore]
- public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); }
-
- ///
- ///
- /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response
- ///
- ///
- [JsonIgnore]
- public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); }
-
- ///
- ///
- /// Blocks and waits until the search is completed up to a certain timeout.
- /// When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster.
- ///
- ///
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); }
- [JsonInclude, JsonPropertyName("aggregations")]
- public IDictionary? Aggregations { get; set; }
- [JsonInclude, JsonPropertyName("collapse")]
- public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; }
-
- ///
- ///
- /// Array of wildcard (*) patterns. The request returns doc values for field
- /// names matching these patterns in the hits.fields property of the response.
- ///
- ///
- [JsonInclude, JsonPropertyName("docvalue_fields")]
- public ICollection? DocvalueFields { get; set; }
-
- ///
- ///
- /// If true, returns detailed information about score computation as part of a hit.
- ///
- ///
- [JsonInclude, JsonPropertyName("explain")]
- public bool? Explain { get; set; }
-
- ///
- ///
- /// Configuration of search extensions defined by Elasticsearch plugins.
- ///
- ///
- [JsonInclude, JsonPropertyName("ext")]
- public IDictionary? Ext { get; set; }
-
- ///
- ///
- /// Array of wildcard (*) patterns. The request returns values for field names
- /// matching these patterns in the hits.fields property of the response.
- ///
- ///
- [JsonInclude, JsonPropertyName("fields")]
- public ICollection? Fields { get; set; }
-
- ///
- ///
- /// Starting document offset. By default, you cannot page through more than 10,000
- /// hits using the from and size parameters. To page through more hits, use the
- /// search_after parameter.
- ///
- ///
- [JsonInclude, JsonPropertyName("from")]
- public int? From { get; set; }
- [JsonInclude, JsonPropertyName("highlight")]
- public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? Highlight { get; set; }
-
- ///
- ///
- /// Boosts the _score of documents from specified indices.
- ///
- ///
- [JsonInclude, JsonPropertyName("indices_boost")]
- public ICollection>? IndicesBoost { get; set; }
-
- ///
- ///
- /// Defines the approximate kNN search to run.
- ///
- ///
- [JsonInclude, JsonPropertyName("knn")]
- [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.KnnSearch))]
- public ICollection? Knn { get; set; }
-
- ///
- ///
- /// Minimum _score for matching documents. Documents with a lower _score are
- /// not included in the search results.
- ///
- ///
- [JsonInclude, JsonPropertyName("min_score")]
- public double? MinScore { get; set; }
-
- ///
- ///
- /// Limits the search to a point in time (PIT). If you provide a PIT, you
- /// cannot specify an <index> in the request path.
- ///
- ///
- [JsonInclude, JsonPropertyName("pit")]
- public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? Pit { get; set; }
- [JsonInclude, JsonPropertyName("post_filter")]
- public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilter { get; set; }
- [JsonInclude, JsonPropertyName("profile")]
- public bool? Profile { get; set; }
-
- ///
- ///
- /// Defines the search definition using the Query DSL.
- ///
- ///
- [JsonInclude, JsonPropertyName("query")]
- public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; }
- [JsonInclude, JsonPropertyName("rescore")]
- [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore))]
- public ICollection? Rescore { get; set; }
-
- ///
- ///
- /// Defines one or more runtime fields in the search request. These fields take
- /// precedence over mapped fields with the same name.
- ///
- ///
- [JsonInclude, JsonPropertyName("runtime_mappings")]
- public IDictionary? RuntimeMappings { get; set; }
-
- ///
- ///
- /// Retrieve a script evaluation (based on different fields) for each hit.
- ///
- ///
- [JsonInclude, JsonPropertyName("script_fields")]
- public IDictionary? ScriptFields { get; set; }
- [JsonInclude, JsonPropertyName("search_after")]
- public ICollection? SearchAfter { get; set; }
-
- ///
- ///
- /// If true, returns sequence number and primary term of the last modification
- /// of each hit. See Optimistic concurrency control.
- ///
- ///
- [JsonInclude, JsonPropertyName("seq_no_primary_term")]
- public bool? SeqNoPrimaryTerm { get; set; }
-
- ///
- ///
- /// The number of hits to return. By default, you cannot page through more
- /// than 10,000 hits using the from and size parameters. To page through more
- /// hits, use the search_after parameter.
- ///
- ///
- [JsonInclude, JsonPropertyName("size")]
- public int? Size { get; set; }
- [JsonInclude, JsonPropertyName("slice")]
- public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; }
- [JsonInclude, JsonPropertyName("sort")]
- [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))]
- public ICollection? Sort { get; set; }
-
- ///
- ///
- /// Indicates which source fields are returned for matching documents. These
- /// fields are returned in the hits._source property of the search response.
- ///
- ///
- [JsonInclude, JsonPropertyName("_source")]
- public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; }
-
- ///
- ///
- /// Stats groups to associate with the search. Each group maintains a statistics
- /// aggregation for its associated searches. You can retrieve these stats using
- /// the indices stats API.
- ///
- ///
- [JsonInclude, JsonPropertyName("stats")]
- public ICollection? Stats { get; set; }
-
- ///
- ///
- /// List of stored fields to return as part of a hit. If no fields are specified,
- /// no stored fields are included in the response. If this field is specified, the _source
- /// parameter defaults to false. You can pass _source: true to return both source fields
- /// and stored fields in the search response.
- ///
- ///
- [JsonInclude, JsonPropertyName("stored_fields")]
- [JsonConverter(typeof(SingleOrManyFieldsConverter))]
- public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; }
- [JsonInclude, JsonPropertyName("suggest")]
- public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? Suggest { get; set; }
-
- ///
- ///
- /// 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. Defaults to 0, which does not terminate query execution early.
- ///
- ///
- [JsonInclude, JsonPropertyName("terminate_after")]
- public long? TerminateAfter { get; set; }
-
- ///
- ///
- /// Specifies the period of time to wait for a response from each shard. If no response
- /// is received before the timeout expires, the request fails and returns an error.
- /// Defaults to no timeout.
- ///
- ///
- [JsonInclude, JsonPropertyName("timeout")]
- public string? Timeout { get; set; }
-
- ///
- ///
- /// If true, calculate and return document scores, even if the scores are not used for sorting.
- ///
- ///
- [JsonInclude, JsonPropertyName("track_scores")]
- public bool? TrackScores { get; set; }
-
- ///
- ///
- /// Number of hits matching the query to count accurately. If true, the exact
- /// number of hits is returned at the cost of some performance. If false, the
- /// response does not include the total number of hits matching the query.
- /// Defaults to 10,000 hits.
- ///
- ///
- [JsonInclude, JsonPropertyName("track_total_hits")]
- public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHits { get; set; }
-
- ///
- ///
- /// If true, returns document version as part of a hit.
- ///
- ///
- [JsonInclude, JsonPropertyName("version")]
- public bool? Version { get; set; }
-}
-
-///
-///
-/// Run an async search.
-///
-///
-/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
-///
-///
-/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
-///
-///
-/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
-/// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting.
-///
-///
-public sealed partial class SubmitAsyncSearchRequestDescriptor : RequestDescriptor, SubmitAsyncSearchRequestParameters>
-{
- internal SubmitAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this);
-
- public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices))
- {
- }
-
- public SubmitAsyncSearchRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchSubmit;
-
- protected override HttpMethod StaticHttpMethod => HttpMethod.POST;
-
- internal override bool SupportsBody => true;
-
- internal override string OperationName => "async_search.submit";
-
- public SubmitAsyncSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices);
- public SubmitAsyncSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults);
- public SubmitAsyncSearchRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer);
- public SubmitAsyncSearchRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard);
- public SubmitAsyncSearchRequestDescriptor BatchedReduceSize(long? batchedReduceSize) => Qs("batched_reduce_size", batchedReduceSize);
- public SubmitAsyncSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips);
- public SubmitAsyncSearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator);
- public SubmitAsyncSearchRequestDescriptor Df(string? df) => Qs("df", df);
- public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards);
- public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled);
- public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable);
- public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion);
- public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient);
- public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests);
- public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference);
- public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax);
- public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache);
- public SubmitAsyncSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt);
- public SubmitAsyncSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing);
- public SubmitAsyncSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType);
- public SubmitAsyncSearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes);
- public SubmitAsyncSearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes);
- public SubmitAsyncSearchRequestDescriptor SuggestField(Elastic.Clients.Elasticsearch.Serverless.Field? suggestField) => Qs("suggest_field", suggestField);
- public SubmitAsyncSearchRequestDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) => Qs("suggest_mode", suggestMode);
- public SubmitAsyncSearchRequestDescriptor SuggestSize(long? suggestSize) => Qs("suggest_size", suggestSize);
- public SubmitAsyncSearchRequestDescriptor SuggestText(string? suggestText) => Qs("suggest_text", suggestText);
- public SubmitAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys);
- public SubmitAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout);
-
- public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices)
- {
- RouteValues.Optional("index", indices);
- return Self;
- }
-
- private IDictionary> AggregationsValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; }
- private Action> CollapseDescriptorAction { get; set; }
- private ICollection? DocvalueFieldsValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; }
- private Action> DocvalueFieldsDescriptorAction { get; set; }
- private Action>[] DocvalueFieldsDescriptorActions { get; set; }
- private bool? ExplainValue { get; set; }
- private IDictionary? ExtValue { get; set; }
- private ICollection? FieldsValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; }
- private Action> FieldsDescriptorAction { get; set; }
- private Action>[] FieldsDescriptorActions { get; set; }
- private int? FromValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; }
- private Action> HighlightDescriptorAction { get; set; }
- private ICollection>? IndicesBoostValue { get; set; }
- private ICollection? KnnValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; }
- private Action> KnnDescriptorAction { get; set; }
- private Action>[] KnnDescriptorActions { get; set; }
- private double? MinScoreValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; }
- private Action PitDescriptorAction { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; }
- private Action> PostFilterDescriptorAction { get; set; }
- private bool? ProfileValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
- private Action> QueryDescriptorAction { get; set; }
- private ICollection? RescoreValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; }
- private Action> RescoreDescriptorAction { get; set; }
- private Action>[] RescoreDescriptorActions { get; set; }
- private IDictionary> RuntimeMappingsValue { get; set; }
- private IDictionary ScriptFieldsValue { get; set; }
- private ICollection? SearchAfterValue { get; set; }
- private bool? SeqNoPrimaryTermValue { get; set; }
- private int? SizeValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? SliceValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor SliceDescriptor { get; set; }
- private Action> SliceDescriptorAction { get; set; }
- private ICollection? SortValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; }
- private Action> SortDescriptorAction { get; set; }
- private Action>[] SortDescriptorActions { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; }
- private ICollection? StatsValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; }
- private Action> SuggestDescriptorAction { get; set; }
- private long? TerminateAfterValue { get; set; }
- private string? TimeoutValue { get; set; }
- private bool? TrackScoresValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; }
- private bool? VersionValue { get; set; }
-
- public SubmitAsyncSearchRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector)
- {
- AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>());
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse)
- {
- CollapseDescriptor = null;
- CollapseDescriptorAction = null;
- CollapseValue = collapse;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor)
- {
- CollapseValue = null;
- CollapseDescriptorAction = null;
- CollapseDescriptor = descriptor;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Collapse(Action> configure)
- {
- CollapseValue = null;
- CollapseDescriptor = null;
- CollapseDescriptorAction = configure;
- return Self;
- }
-
- ///
- ///
- /// Array of wildcard (*) patterns. The request returns doc values for field
- /// names matching these patterns in the hits.fields property of the response.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor DocvalueFields(ICollection? docvalueFields)
- {
- DocvalueFieldsDescriptor = null;
- DocvalueFieldsDescriptorAction = null;
- DocvalueFieldsDescriptorActions = null;
- DocvalueFieldsValue = docvalueFields;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor)
- {
- DocvalueFieldsValue = null;
- DocvalueFieldsDescriptorAction = null;
- DocvalueFieldsDescriptorActions = null;
- DocvalueFieldsDescriptor = descriptor;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor DocvalueFields(Action> configure)
- {
- DocvalueFieldsValue = null;
- DocvalueFieldsDescriptor = null;
- DocvalueFieldsDescriptorActions = null;
- DocvalueFieldsDescriptorAction = configure;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor DocvalueFields(params Action>[] configure)
- {
- DocvalueFieldsValue = null;
- DocvalueFieldsDescriptor = null;
- DocvalueFieldsDescriptorAction = null;
- DocvalueFieldsDescriptorActions = configure;
- return Self;
- }
-
- ///
- ///
- /// If true, returns detailed information about score computation as part of a hit.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor Explain(bool? explain = true)
- {
- ExplainValue = explain;
- return Self;
- }
-
- ///
- ///
- /// Configuration of search extensions defined by Elasticsearch plugins.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor Ext(Func, FluentDictionary> selector)
- {
- ExtValue = selector?.Invoke(new FluentDictionary());
- return Self;
- }
-
- ///
- ///
- /// Array of wildcard (*) patterns. The request returns values for field names
- /// matching these patterns in the hits.fields property of the response.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor Fields(ICollection? fields)
- {
- FieldsDescriptor = null;
- FieldsDescriptorAction = null;
- FieldsDescriptorActions = null;
- FieldsValue = fields;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor)
- {
- FieldsValue = null;
- FieldsDescriptorAction = null;
- FieldsDescriptorActions = null;
- FieldsDescriptor = descriptor;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Fields(Action> configure)
- {
- FieldsValue = null;
- FieldsDescriptor = null;
- FieldsDescriptorActions = null;
- FieldsDescriptorAction = configure;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Fields(params Action>[] configure)
- {
- FieldsValue = null;
- FieldsDescriptor = null;
- FieldsDescriptorAction = null;
- FieldsDescriptorActions = configure;
- return Self;
- }
-
- ///
- ///
- /// Starting document offset. By default, you cannot page through more than 10,000
- /// hits using the from and size parameters. To page through more hits, use the
- /// search_after parameter.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor From(int? from)
- {
- FromValue = from;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight)
- {
- HighlightDescriptor = null;
- HighlightDescriptorAction = null;
- HighlightValue = highlight;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor)
- {
- HighlightValue = null;
- HighlightDescriptorAction = null;
- HighlightDescriptor = descriptor;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Highlight(Action> configure)
- {
- HighlightValue = null;
- HighlightDescriptor = null;
- HighlightDescriptorAction = configure;
- return Self;
- }
-
- ///
- ///
- /// Boosts the _score of documents from specified indices.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost)
- {
- IndicesBoostValue = indicesBoost;
- return Self;
- }
-
- ///
- ///
- /// Defines the approximate kNN search to run.
- ///
- ///
- public SubmitAsyncSearchRequestDescriptor Knn(ICollection? knn)
- {
- KnnDescriptor = null;
- KnnDescriptorAction = null;
- KnnDescriptorActions = null;
- KnnValue = knn;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor