Skip to content

Commit 3397a09

Browse files
committed
Added project-routing to resolve/index and slight wording updates to SearchRequest and AsyncSearchRequest and FieldCaps specs
1 parent bffdb9b commit 3397a09

File tree

7 files changed

+47
-11
lines changed

7 files changed

+47
-11
lines changed

output/schema/schema.json

Lines changed: 23 additions & 4 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export interface Request extends RequestBase {
109109
include_empty_fields?: boolean
110110
/**
111111
* 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).
112+
* metadata tags in a subset of Lucene query syntax.
113+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
114114
* Examples:
115115
* _alias:my-project
116116
* _alias:_origin

specification/_global/search/SearchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ export interface Request extends RequestBase {
222222
pre_filter_shard_size?: long
223223
/**
224224
* 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).
225+
* metadata tags in a subset of Lucene query syntax.
226+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
227227
* Examples:
228228
* _alias:my-project
229229
* _alias:_origin

specification/_json_spec/indices.resolve_index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
"options": ["standard", "time_series", "logsdb", "lookup"],
4646
"default": "",
4747
"description": "Filter indices by index mode. Comma-separated list of IndexMode. Empty means no filter."
48+
},
49+
"project_routing": {
50+
"type": "string",
51+
"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."
4852
}
4953
}
5054
}

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export interface Request extends RequestBase {
129129
preference?: string
130130
/**
131131
* 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).
132+
* metadata tags in a subset of Lucene query syntax.
133+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
134134
* Examples:
135135
* _alias:my-project
136136
* _alias:_origin

specification/indices/resolve_index/ResolveIndexRequest.ts

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

2020
import { RequestBase } from '@_types/Base'
21-
import { ExpandWildcards, Names } from '@_types/common'
21+
import { ExpandWildcards, Names, ProjectRouting } from '@_types/common'
2222
import { IndexMode } from '@indices/_types/DataStream'
2323

2424
/**
@@ -71,5 +71,17 @@ export interface Request extends RequestBase {
7171
* @availability serverless stability=stable visibility=public
7272
*/
7373
mode?: IndexMode | IndexMode[]
74+
/**
75+
* Specifies a subset of projects to target using project
76+
* metadata tags in a subset of Lucene query syntax.
77+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
78+
* Examples:
79+
* _alias:my-project
80+
* _alias:_origin
81+
* _alias:*pr*
82+
* Supported in serverless only.
83+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
84+
*/
85+
project_routing?: ProjectRouting
7486
}
7587
}

0 commit comments

Comments
 (0)