Skip to content

Commit 4711176

Browse files
authored
adds specifications for project_routing in the body of _search and _async_search request (#5755)
1 parent d1afeb9 commit 4711176

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

output/schema/schema.json

Lines changed: 40 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/search/SearchRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,5 +604,17 @@ export interface Request extends RequestBase {
604604
* You can retrieve these stats using the indices stats API.
605605
*/
606606
stats?: string[]
607+
/**
608+
* Specifies a subset of projects to target for the search using project
609+
* metadata tags in a subset of Lucene query syntax.
610+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
611+
* Examples:
612+
* _alias:my-project
613+
* _alias:_origin
614+
* _alias:*pr*
615+
* Supported in serverless only.
616+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
617+
*/
618+
project_routing?: ProjectRouting
607619
}
608620
}

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,17 @@ export interface Request extends RequestBase {
321321
* the indices stats API.
322322
*/
323323
stats?: string[]
324+
/**
325+
* Specifies a subset of projects to target for the search using project
326+
* metadata tags in a subset of Lucene query syntax.
327+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
328+
* Examples:
329+
* _alias:my-project
330+
* _alias:_origin
331+
* _alias:*pr*
332+
* Supported in serverless only.
333+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
334+
*/
335+
project_routing?: ProjectRouting
324336
}
325337
}

0 commit comments

Comments
 (0)