diff --git a/output/schema/schema.json b/output/schema/schema.json index 5522a105d1..517e9b1bfe 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -47620,6 +47620,25 @@ "namespace": "_builtins" } } + }, + { + "availability": { + "serverless": { + "featureFlag": "serverless.cross_project.enabled", + "stability": "stable", + "visibility": "feature_flag" + } + }, + "description": "Specifies a subset of projects to target for the search 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" + } + } } ] }, @@ -47795,25 +47814,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search 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" - } - } - }, { "description": "Maximum number of features to return in the hits layer. Accepts 0-10000.\nIf 0, results don't include the hits layer.", "name": "size", @@ -48430,6 +48430,25 @@ "namespace": "_types" } } + }, + { + "availability": { + "serverless": { + "featureFlag": "serverless.cross_project.enabled", + "stability": "stable", + "visibility": "feature_flag" + } + }, + "description": "Specifies a subset of projects to target for the search 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" + } + } } ] }, @@ -48599,25 +48618,6 @@ } } }, - { - "availability": { - "serverless": { - "featureFlag": "serverless.cross_project.enabled", - "stability": "stable", - "visibility": "feature_flag" - } - }, - "description": "Specifies a subset of projects to target for the search 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" - } - } - }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e1eceab6d5..93e028a8fb 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1901,7 +1901,6 @@ export interface SearchMvtRequest extends RequestBase { grid_agg?: SearchMvtGridAggregationType grid_precision?: integer grid_type?: SearchMvtGridType - project_routing?: ProjectRouting size?: integer track_total_hits?: SearchTrackHits with_labels?: boolean @@ -1920,6 +1919,7 @@ export interface SearchMvtRequest extends RequestBase { sort?: Sort track_total_hits?: SearchTrackHits with_labels?: boolean + project_routing?: ProjectRouting } } @@ -1977,7 +1977,6 @@ export interface SearchTemplateRequest extends RequestBase { ignore_unavailable?: boolean preference?: string profile?: boolean - project_routing?: ProjectRouting routing?: Routing scroll?: Duration search_type?: SearchType @@ -1989,6 +1988,7 @@ export interface SearchTemplateRequest extends RequestBase { params?: Record profile?: boolean source?: ScriptSource + project_routing?: ProjectRouting } } diff --git a/specification/_global/search_mvt/SearchMvtRequest.ts b/specification/_global/search_mvt/SearchMvtRequest.ts index fac5ccd922..7f2444232e 100644 --- a/specification/_global/search_mvt/SearchMvtRequest.ts +++ b/specification/_global/search_mvt/SearchMvtRequest.ts @@ -203,18 +203,6 @@ export interface Request extends RequestBase { * @server_default grid */ grid_type?: GridType - /** - * Specifies a subset of projects to target for the search 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 /** * Maximum number of features to return in the hits layer. Accepts 0-10000. * If 0, results don't include the hits layer. @@ -352,5 +340,17 @@ export interface Request extends RequestBase { * In addition, the new features will be distinguishable using the tag `_mvt_label_position`. */ with_labels?: boolean + /** + * Specifies a subset of projects to target for the search 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 } } diff --git a/specification/_global/search_template/SearchTemplateRequest.ts b/specification/_global/search_template/SearchTemplateRequest.ts index 766a45eb9b..b6bbeb59b6 100644 --- a/specification/_global/search_template/SearchTemplateRequest.ts +++ b/specification/_global/search_template/SearchTemplateRequest.ts @@ -105,18 +105,6 @@ export interface Request extends RequestBase { * If `true`, the query execution is profiled. * @server_default false */ profile?: boolean - /** - * Specifies a subset of projects to target for the search 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 /** A custom value used to route operations to a specific shard. */ routing?: Routing /** @@ -168,5 +156,17 @@ export interface Request extends RequestBase { * parameter is required. */ source?: ScriptSource + /** + * Specifies a subset of projects to target for the search 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 } }