Skip to content

Commit bffdb9b

Browse files
committed
Added project-routing to field-caps and slight wording updates to SearchRequest and AsyncSearchRequest
1 parent 85fef2a commit bffdb9b

File tree

6 files changed

+55
-12
lines changed

6 files changed

+55
-12
lines changed

output/schema/schema.json

Lines changed: 24 additions & 5 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: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/field_caps/FieldCapabilitiesRequest.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { ExpandWildcards, Fields, Indices } from '@_types/common'
21+
import {
22+
ExpandWildcards,
23+
Fields,
24+
Indices,
25+
ProjectRouting
26+
} from '@_types/common'
2227
import { RuntimeFields } from '@_types/mapping/RuntimeFields'
2328
import { QueryContainer } from '@_types/query_dsl/abstractions'
2429

@@ -102,6 +107,18 @@ export interface Request extends RequestBase {
102107
* @server_default true
103108
*/
104109
include_empty_fields?: boolean
110+
/**
111+
* Specifies a subset of projects to target for the field-caps query using project
112+
* metdata tags in a subset of Lucene query syntax.
113+
* Allowed Lucene queries: the _alias tag and a single value (possible wildcarded).
114+
* Examples:
115+
* _alias:my-project
116+
* _alias:_origin
117+
* _alias:*pr*
118+
* Supported in serverless only.
119+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
120+
*/
121+
project_routing?: ProjectRouting
105122
}
106123
body: {
107124
/**

specification/_global/search/SearchRequest.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ export interface Request extends RequestBase {
221221
*/
222222
pre_filter_shard_size?: long
223223
/**
224-
* Specifies a subset of projects to target for a search using project metadata
225-
* tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag
226-
* and a single value (possible wildcarded). Examples:
224+
* Specifies a subset of projects to target for the search using project
225+
* metdata tags in a subset of Lucene query syntax.
226+
* Allowed Lucene queries: the _alias tag and a single value (possible wildcarded).
227+
* Examples:
227228
* _alias:my-project
228229
* _alias:_origin
229230
* _alias:*pr*

specification/_json_spec/field_caps.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
"type": "boolean",
6565
"default": true,
6666
"description": "Include empty fields in result"
67+
},
68+
"project_routing": {
69+
"type": "string",
70+
"description": "A Lucene query using project metadata tags to limit which projects to include, such as _alias:_origin or _alias:*pr*. Only supported in serverless."
6771
}
6872
},
6973
"body": {

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ export interface Request extends RequestBase {
128128
max_concurrent_shard_requests?: integer
129129
preference?: string
130130
/**
131-
* Specifies a subset of projects to target for a search using project metadata
132-
* tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag
133-
* and a single value (possible wildcarded). Examples:
131+
* Specifies a subset of projects to target for the search using project
132+
* metdata tags in a subset of Lucene query syntax.
133+
* Allowed Lucene queries: the _alias tag and a single value (possible wildcarded).
134+
* Examples:
134135
* _alias:my-project
135136
* _alias:_origin
136137
* _alias:*pr*

0 commit comments

Comments
 (0)