diff --git a/docfx.json b/docfx.json
new file mode 100644
index 00000000000..3b0069106e2
--- /dev/null
+++ b/docfx.json
@@ -0,0 +1,46 @@
+{
+ "metadata": [
+ {
+ "src": [
+ {
+ "src": "./src/Elastic.Clients.Elasticsearch",
+ "files": [
+ "**/*.csproj"
+ ]
+ }
+ ],
+ "dest": "api"
+ }
+ ],
+ "build": {
+ "content": [
+ {
+ "files": [
+ "**/*.{md,yml}"
+ ],
+ "exclude": [
+ "_site/**"
+ ]
+ }
+ ],
+ "resource": [
+ {
+ "files": [
+ "images/**"
+ ]
+ }
+ ],
+ "output": "_site",
+ "template": [
+ "default",
+ "modern"
+ ],
+ "globalMetadata": {
+ "_appName": "Elasticsearch.NET",
+ "_appTitle": "Elasticsearch.NET",
+ "_enableSearch": true,
+ "_disableContribution": true,
+ "pdf": false
+ }
+ }
+}
\ 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
index f84886bf35a..5aaa3c540a6 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs
@@ -26,9 +26,14 @@ internal static class ApiUrlLookup
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" });
@@ -40,11 +45,14 @@ internal static class ApiUrlLookup
internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" });
internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" });
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}" });
+ 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}" });
@@ -60,25 +68,107 @@ internal static class ApiUrlLookup
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}" });
+ 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 IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" });
+ 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 IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
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 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" });
@@ -95,12 +185,13 @@ internal static class ApiUrlLookup
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 NoNamespaceMget = new ApiUrls(new[] { "_mget", "{index}/_mget" });
- internal static ApiUrls NoNamespaceMsearch = new ApiUrls(new[] { "_msearch", "{index}/_msearch" });
- internal static ApiUrls NoNamespaceMsearchTemplate = new ApiUrls(new[] { "_msearch/template", "{index}/_msearch/template" });
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}" });
@@ -110,18 +201,58 @@ internal static class ApiUrlLookup
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 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 TasksCancel = new ApiUrls(new[] { "_tasks/_cancel", "_tasks/{task_id}/_cancel" });
- internal static ApiUrls TasksGet = new ApiUrls(new[] { "_tasks/{task_id}" });
- internal static ApiUrls TasksList = new ApiUrls(new[] { "_tasks" });
+ internal static ApiUrls 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
index 136f6190675..65bc0c016a4 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs
@@ -62,10 +62,6 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}
- internal AsyncSearchStatusRequestDescriptor()
- {
- }
-
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
@@ -96,10 +92,6 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}
- internal AsyncSearchStatusRequestDescriptor()
- {
- }
-
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
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
index 86d5ee90665..73cf40f7f45 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs
@@ -39,18 +39,34 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse
///
[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; }
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
index 687814bce64..34e6fd301fa 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs
@@ -62,10 +62,6 @@ public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}
- internal DeleteAsyncSearchRequestDescriptor()
- {
- }
-
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
@@ -96,10 +92,6 @@ public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}
- internal DeleteAsyncSearchRequestDescriptor()
- {
- }
-
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
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
index a56a97deed4..dd2b08c8d8d 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs
@@ -20,6 +20,7 @@
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;
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
index 08bdbc51b85..05c81be7421 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs
@@ -94,10 +94,6 @@ public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.
{
}
- internal GetAsyncSearchRequestDescriptor()
- {
- }
-
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
@@ -132,10 +128,6 @@ public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.
{
}
- internal GetAsyncSearchRequestDescriptor()
- {
- }
-
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
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
index 69f21655b0f..6242022d095 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs
@@ -28,18 +28,33 @@ 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")]
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
index 922f4980a78..b520e8e6934 100644
--- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs
@@ -194,7 +194,7 @@ public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type ty
var property = reader.GetString();
if (property == "aggregations" || property == "aggs")
{
- variant.Aggregations = JsonSerializer.Deserialize(ref reader, options);
+ variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options);
continue;
}
@@ -588,10 +588,10 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value
}
}
-[JsonConverter(typeof(SubmitAsyncSearchRequestConverter))]
///
/// Runs a search request asynchronously.
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, hence partial results become available following the sort criteria that was requested.
Warning: Async search does not support scroll nor search requests that only include the suggest section.
By default, Elasticsearch doesn’t 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()
@@ -790,7 +790,7 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
[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 Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationDictionary? Aggregations { get; set; }
+ public IDictionary? Aggregations { get; set; }
[JsonInclude, JsonPropertyName("collapse")]
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; }
@@ -953,6 +953,10 @@ public sealed partial class SubmitAsyncSearchRequestDescriptor : Requ
{
internal SubmitAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this);
+ public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices))
+ {
+ }
+
public SubmitAsyncSearchRequestDescriptor()
{
}
@@ -1004,91 +1008,71 @@ public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Ela
return Self;
}
- private Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationDictionary? AggregationsValue { get; set; }
- private Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationDescriptor AggregationsDescriptor { get; set; }
- private Action> AggregationsDescriptorAction { get; set; }
+ private IDictionary> AggregationsValue { get; set; }
private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; }
- private Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; }
- private Action> CollapseDescriptorAction { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; }
+ private Action> CollapseDescriptorAction { get; set; }
private ICollection? DocvalueFieldsValue { get; set; }
- private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; }
- private Action> DocvalueFieldsDescriptorAction { get; set; }
- private Action>[] DocvalueFieldsDescriptorActions { 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 QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; }
- private Action> FieldsDescriptorAction { get; set; }
- private Action>[] FieldsDescriptorActions { 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 Core.Search.HighlightDescriptor HighlightDescriptor { get; set; }
- private Action> HighlightDescriptorAction { 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 KnnQueryDescriptor KnnDescriptor { get; set; }
- private Action> KnnDescriptorAction { get; set; }
- private Action>[] KnnDescriptorActions { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor 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 Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; }
- private Action PitDescriptorAction { 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 QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; }
- private Action> PostFilterDescriptorAction { 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 QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
- private Action> QueryDescriptorAction { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; }
+ private Action> QueryDescriptorAction { get; set; }
private ICollection? RescoreValue { get; set; }
- private 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 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 SlicedScrollDescriptor SliceDescriptor { get; set; }
- private Action> SliceDescriptorAction { get; set; }
+ private Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor SliceDescriptor { get; set; }
+ private Action> SliceDescriptorAction { get; set; }
private ICollection? SortValue { get; set; }
- private SortOptionsDescriptor SortDescriptor { get; set; }
- private Action> SortDescriptorAction { get; set; }
- private Action>[] SortDescriptorActions { 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 Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; }
- private Action SuggestDescriptorAction { 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(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationDictionary? aggregations)
- {
- AggregationsDescriptor = null;
- AggregationsDescriptorAction = null;
- AggregationsValue = aggregations;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Aggregations(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector)
{
- AggregationsValue = null;
- AggregationsDescriptorAction = null;
- AggregationsDescriptor = descriptor;
- return Self;
- }
-
- public SubmitAsyncSearchRequestDescriptor Aggregations(Action> configure)
- {
- AggregationsValue = null;
- AggregationsDescriptor = null;
- AggregationsDescriptorAction = configure;
+ AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>());
return Self;
}
@@ -1100,7 +1084,7 @@ public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.El
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Collapse(Core.Search.FieldCollapseDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor)
{
CollapseValue = null;
CollapseDescriptorAction = null;
@@ -1108,7 +1092,7 @@ public SubmitAsyncSearchRequestDescriptor Collapse(Core.Search.FieldC
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Collapse(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Collapse(Action> configure)
{
CollapseValue = null;
CollapseDescriptor = null;
@@ -1128,7 +1112,7 @@ public SubmitAsyncSearchRequestDescriptor DocvalueFields(ICollection<
return Self;
}
- public SubmitAsyncSearchRequestDescriptor DocvalueFields(QueryDsl.FieldAndFormatDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor)
{
DocvalueFieldsValue = null;
DocvalueFieldsDescriptorAction = null;
@@ -1137,7 +1121,7 @@ public SubmitAsyncSearchRequestDescriptor DocvalueFields(QueryDsl.Fie
return Self;
}
- public SubmitAsyncSearchRequestDescriptor DocvalueFields(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor DocvalueFields(Action> configure)
{
DocvalueFieldsValue = null;
DocvalueFieldsDescriptor = null;
@@ -1146,7 +1130,7 @@ public SubmitAsyncSearchRequestDescriptor DocvalueFields(Action DocvalueFields(params Action>[] configure)
+ public SubmitAsyncSearchRequestDescriptor DocvalueFields(params Action>[] configure)
{
DocvalueFieldsValue = null;
DocvalueFieldsDescriptor = null;
@@ -1185,7 +1169,7 @@ public SubmitAsyncSearchRequestDescriptor Fields(ICollection Fields(QueryDsl.FieldAndFormatDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor)
{
FieldsValue = null;
FieldsDescriptorAction = null;
@@ -1194,7 +1178,7 @@ public SubmitAsyncSearchRequestDescriptor Fields(QueryDsl.FieldAndFor
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Fields(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Fields(Action> configure)
{
FieldsValue = null;
FieldsDescriptor = null;
@@ -1203,7 +1187,7 @@ public SubmitAsyncSearchRequestDescriptor Fields(Action Fields(params Action>[] configure)
+ public SubmitAsyncSearchRequestDescriptor Fields(params Action>[] configure)
{
FieldsValue = null;
FieldsDescriptor = null;
@@ -1229,7 +1213,7 @@ public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.E
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Highlight(Core.Search.HighlightDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor)
{
HighlightValue = null;
HighlightDescriptorAction = null;
@@ -1237,7 +1221,7 @@ public SubmitAsyncSearchRequestDescriptor Highlight(Core.Search.Highl
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Highlight(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Highlight(Action> configure)
{
HighlightValue = null;
HighlightDescriptor = null;
@@ -1266,7 +1250,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(ICollection Knn(KnnQueryDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnQueryDescriptor descriptor)
{
KnnValue = null;
KnnDescriptorAction = null;
@@ -1275,7 +1259,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(KnnQueryDescriptor Knn(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Knn(Action> configure)
{
KnnValue = null;
KnnDescriptor = null;
@@ -1284,7 +1268,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Action Knn(params Action>[] configure)
+ public SubmitAsyncSearchRequestDescriptor Knn(params Action>[] configure)
{
KnnValue = null;
KnnDescriptor = null;
@@ -1313,7 +1297,7 @@ public SubmitAsyncSearchRequestDescriptor Pit(Elastic.Clients.Elastic
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Pit(Core.Search.PointInTimeReferenceDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor)
{
PitValue = null;
PitDescriptorAction = null;
@@ -1321,7 +1305,7 @@ public SubmitAsyncSearchRequestDescriptor Pit(Core.Search.PointInTime
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Pit(Action configure)
+ public SubmitAsyncSearchRequestDescriptor Pit(Action configure)
{
PitValue = null;
PitDescriptor = null;
@@ -1337,7 +1321,7 @@ public SubmitAsyncSearchRequestDescriptor PostFilter(Elastic.Clients.
return Self;
}
- public SubmitAsyncSearchRequestDescriptor PostFilter(QueryDsl.QueryDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor)
{
PostFilterValue = null;
PostFilterDescriptorAction = null;
@@ -1345,7 +1329,7 @@ public SubmitAsyncSearchRequestDescriptor PostFilter(QueryDsl.QueryDe
return Self;
}
- public SubmitAsyncSearchRequestDescriptor PostFilter(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor PostFilter(Action> configure)
{
PostFilterValue = null;
PostFilterDescriptor = null;
@@ -1370,7 +1354,7 @@ public SubmitAsyncSearchRequestDescriptor Query(Elastic.Clients.Elast
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Query(QueryDsl.QueryDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor)
{
QueryValue = null;
QueryDescriptorAction = null;
@@ -1378,7 +1362,7 @@ public SubmitAsyncSearchRequestDescriptor Query(QueryDsl.QueryDescrip
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Query(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Query(Action> configure)
{
QueryValue = null;
QueryDescriptor = null;
@@ -1395,7 +1379,7 @@ public SubmitAsyncSearchRequestDescriptor Rescore(ICollection Rescore(Core.Search.RescoreDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor)
{
RescoreValue = null;
RescoreDescriptorAction = null;
@@ -1404,7 +1388,7 @@ public SubmitAsyncSearchRequestDescriptor Rescore(Core.Search.Rescore
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Rescore(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Rescore(Action> configure)
{
RescoreValue = null;
RescoreDescriptor = null;
@@ -1413,7 +1397,7 @@ public SubmitAsyncSearchRequestDescriptor Rescore(Action Rescore(params Action>[] configure)
+ public SubmitAsyncSearchRequestDescriptor Rescore(params Action>[] configure)
{
RescoreValue = null;
RescoreDescriptor = null;
@@ -1425,18 +1409,18 @@ public SubmitAsyncSearchRequestDescriptor Rescore(params Action
/// Defines one or more runtime fields in the search request. These fields take
precedence over mapped fields with the same name.
///
- public SubmitAsyncSearchRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector)
+ public SubmitAsyncSearchRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector)
{
- RuntimeMappingsValue = selector?.Invoke(new FluentDictionary());
+ RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>());
return Self;
}
///
/// Retrieve a script evaluation (based on different fields) for each hit.
///
- public SubmitAsyncSearchRequestDescriptor ScriptFields(Func, FluentDictionary> selector)
+ public SubmitAsyncSearchRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector)
{
- ScriptFieldsValue = selector?.Invoke(new FluentDictionary());
+ ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary());
return Self;
}
@@ -1472,7 +1456,7 @@ public SubmitAsyncSearchRequestDescriptor Slice(Elastic.Clients.Elast
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Slice(SlicedScrollDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor)
{
SliceValue = null;
SliceDescriptorAction = null;
@@ -1480,7 +1464,7 @@ public SubmitAsyncSearchRequestDescriptor Slice(SlicedScrollDescripto
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Slice(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Slice(Action> configure)
{
SliceValue = null;
SliceDescriptor = null;
@@ -1497,7 +1481,7 @@ public SubmitAsyncSearchRequestDescriptor Sort(ICollection Sort(SortOptionsDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor)
{
SortValue = null;
SortDescriptorAction = null;
@@ -1506,7 +1490,7 @@ public SubmitAsyncSearchRequestDescriptor Sort(SortOptionsDescriptor<
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Sort(Action> configure)
+ public SubmitAsyncSearchRequestDescriptor Sort(Action> configure)
{
SortValue = null;
SortDescriptor = null;
@@ -1515,7 +1499,7 @@ public SubmitAsyncSearchRequestDescriptor Sort(Action Sort(params Action>[] configure)
+ public SubmitAsyncSearchRequestDescriptor Sort(params Action>[] configure)
{
SortValue = null;
SortDescriptor = null;
@@ -1559,7 +1543,7 @@ public SubmitAsyncSearchRequestDescriptor Suggest(Elastic.Clients.Ela
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Suggest(Core.Search.SuggesterDescriptor descriptor)
+ public SubmitAsyncSearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor)
{
SuggestValue = null;
SuggestDescriptorAction = null;
@@ -1567,7 +1551,7 @@ public SubmitAsyncSearchRequestDescriptor Suggest(Core.Search.Suggest
return Self;
}
- public SubmitAsyncSearchRequestDescriptor Suggest(Action configure)
+ public SubmitAsyncSearchRequestDescriptor Suggest(Action> configure)
{
SuggestValue = null;
SuggestDescriptor = null;
@@ -1623,17 +1607,7 @@ public SubmitAsyncSearchRequestDescriptor Version(bool? version = tru
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
writer.WriteStartObject();
- if (AggregationsDescriptor is not null)
- {
- writer.WritePropertyName("aggregations");
- JsonSerializer.Serialize(writer, AggregationsDescriptor, options);
- }
- else if (AggregationsDescriptorAction is not null)
- {
- writer.WritePropertyName("aggregations");
- JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationDescriptor(AggregationsDescriptorAction), options);
- }
- else if (AggregationsValue is not null)
+ if (AggregationsValue is not null)
{
writer.WritePropertyName("aggregations");
JsonSerializer.Serialize(writer, AggregationsValue, options);
@@ -1647,7 +1621,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
else if (CollapseDescriptorAction is not null)
{
writer.WritePropertyName("collapse");
- JsonSerializer.Serialize(writer, new Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options);
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options);
}
else if (CollapseValue is not null)
{
@@ -1666,7 +1640,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
{
writer.WritePropertyName("docvalue_fields");
writer.WriteStartArray();
- JsonSerializer.Serialize(writer, new QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options);
+ JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor