From 58a1375cd02166d7f8e5941529afe5b7506faf9e Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 3 Sep 2025 10:11:30 -0600 Subject: [PATCH 1/3] Document new index mode filter for _resolve/index See: https://github.com/elastic/elasticsearch/pull/133616 --- specification/indices/resolve_index/ResolveIndexRequest.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/indices/resolve_index/ResolveIndexRequest.ts b/specification/indices/resolve_index/ResolveIndexRequest.ts index cda77632f7..0fa1330679 100644 --- a/specification/indices/resolve_index/ResolveIndexRequest.ts +++ b/specification/indices/resolve_index/ResolveIndexRequest.ts @@ -64,5 +64,9 @@ export interface Request extends RequestBase { * @server_default true */ allow_no_indices?: boolean + /** + * Filter by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter. + */ + mode?: IndexMode | IndexMode[] } } From a15ee7836d3d38d2f4c889d4626ed2b4d36ebe3d Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 3 Sep 2025 10:16:20 -0600 Subject: [PATCH 2/3] Add import --- specification/indices/resolve_index/ResolveIndexRequest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/indices/resolve_index/ResolveIndexRequest.ts b/specification/indices/resolve_index/ResolveIndexRequest.ts index 0fa1330679..d8bd55efc1 100644 --- a/specification/indices/resolve_index/ResolveIndexRequest.ts +++ b/specification/indices/resolve_index/ResolveIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Names } from '@_types/common' +import { IndexMode } from '@indices/_types/DataStream' /** * Resolve indices. From 733df511b9d5e51e25107b460168465fa27ba217 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 3 Sep 2025 10:25:19 -0600 Subject: [PATCH 3/3] Add JSON schema and contrib --- output/openapi/elasticsearch-openapi.json | 21 +++++++++++- .../elasticsearch-serverless-openapi.json | 20 +++++++++++ output/schema/schema.json | 34 ++++++++++++++++--- output/typescript/types.ts | 3 +- .../_json_spec/indices.resolve_index.json | 6 ++++ .../resolve_index/ResolveIndexRequest.ts | 2 +- 6 files changed, 78 insertions(+), 8 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 2458b8e96d..449f3e5b6e 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -19635,6 +19635,26 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "mode", + "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", + "deprecated": false, + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexMode" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types.IndexMode" + } + } + ] + }, + "style": "form" } ], "responses": { @@ -74497,7 +74517,6 @@ "id", "nodeId", "pid", - "p", "host", "h", "ip", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 501ae3f2ff..bd40ab5370 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -10768,6 +10768,26 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "mode", + "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", + "deprecated": false, + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexMode" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types.IndexMode" + } + } + ] + }, + "style": "form" } ], "responses": { diff --git a/output/schema/schema.json b/output/schema/schema.json index d7186d1d63..469953bc06 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -103081,10 +103081,7 @@ "name": "id" }, { - "aliases": [ - "p" - ], - "description": "The process ID.", + "description": "The process ID.\n* @aliases p", "name": "pid" }, { @@ -165125,9 +165122,36 @@ "namespace": "_builtins" } } + }, + { + "description": "Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.", + "name": "mode", + "required": false, + "type": { + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexMode", + "namespace": "indices._types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexMode", + "namespace": "indices._types" + } + } + } + ] + } } ], - "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L23-L68" + "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L24-L73" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 75c2ed228e..d5635233db 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -7227,7 +7227,7 @@ export type CatCatNodeColumn = 'build' | 'b' | 'completion.size' | 'cs' | 'compl export type CatCatNodeColumns = CatCatNodeColumn | CatCatNodeColumn[] -export type CatCatNodeattrsColumn = 'node' | 'id' | 'id' | 'nodeId' | 'pid' | 'p' | 'host' | 'h' | 'ip' | 'i' | 'port' | 'po' | 'attr' | 'attr.name' | 'value' | 'attr.value'| string +export type CatCatNodeattrsColumn = 'node' | 'id' | 'id' | 'nodeId' | 'pid' | 'host' | 'h' | 'ip' | 'i' | 'port' | 'po' | 'attr' | 'attr.name' | 'value' | 'attr.value'| string export type CatCatNodeattrsColumns = CatCatNodeattrsColumn | CatCatNodeattrsColumn[] @@ -13319,6 +13319,7 @@ export interface IndicesResolveIndexRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean allow_no_indices?: boolean + mode?: IndicesIndexMode | IndicesIndexMode[] } export interface IndicesResolveIndexResolveIndexAliasItem { diff --git a/specification/_json_spec/indices.resolve_index.json b/specification/_json_spec/indices.resolve_index.json index a991093d0b..d3e23cc24b 100644 --- a/specification/_json_spec/indices.resolve_index.json +++ b/specification/_json_spec/indices.resolve_index.json @@ -39,6 +39,12 @@ "type": "boolean", "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "default": true + }, + "mode": { + "type": "enum", + "options": ["standard", "time_series", "logsdb", "lookup"], + "default": "", + "description": "Filter indices by index mode. Comma-separated list of IndexMode. Empty means no filter." } } } diff --git a/specification/indices/resolve_index/ResolveIndexRequest.ts b/specification/indices/resolve_index/ResolveIndexRequest.ts index d8bd55efc1..f8d7f79755 100644 --- a/specification/indices/resolve_index/ResolveIndexRequest.ts +++ b/specification/indices/resolve_index/ResolveIndexRequest.ts @@ -66,7 +66,7 @@ export interface Request extends RequestBase { */ allow_no_indices?: boolean /** - * Filter by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter. + * Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter. */ mode?: IndexMode | IndexMode[] }