From dcd1810246090c95c926046a2ea393ae9df4f53c Mon Sep 17 00:00:00 2001 From: piergm <134913285+piergm@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:23:33 +0100 Subject: [PATCH] adds specifications for project_routing in the body of open pit request --- output/schema/schema.json | 21 ++++++++++++++++++- output/typescript/types.ts | 1 + .../OpenPointInTimeRequest.ts | 12 +++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 6d626e1b6a..d4b291c269 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -35512,6 +35512,25 @@ "namespace": "_types.query_dsl" } } + }, + { + "availability": { + "serverless": { + "featureFlag": "serverless.cross_project.enabled", + "stability": "stable", + "visibility": "feature_flag" + } + }, + "description": "Specifies a subset of projects to target for the PIT request using project\nmetadata tags in a subset of Lucene query syntax.\nAllowed Lucene queries: the _alias tag and a single value (possibly wildcarded).\nExamples:\n _alias:my-project\n _alias:_origin\n _alias:*pr*\nSupported in serverless only.", + "name": "project_routing", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "ProjectRouting", + "namespace": "_types" + } + } } ] }, @@ -35680,7 +35699,7 @@ } } ], - "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L31-L144" + "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L31-L156" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0c16a633de..ed82c43fda 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -892,6 +892,7 @@ export interface OpenPointInTimeRequest extends RequestBase { max_concurrent_shard_requests?: integer body?: { index_filter?: QueryDslQueryContainer + project_routing?: ProjectRouting } } diff --git a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts index af23429e0e..e809160a77 100644 --- a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts +++ b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts @@ -140,5 +140,17 @@ export interface Request extends RequestBase { * Filter indices if the provided query rewrites to `match_none` on every shard. */ index_filter?: QueryContainer + /** + * Specifies a subset of projects to target for the PIT request using project + * metadata tags in a subset of Lucene query syntax. + * Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded). + * Examples: + * _alias:my-project + * _alias:_origin + * _alias:*pr* + * Supported in serverless only. + * @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled + */ + project_routing?: ProjectRouting } }