Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
334 changes: 242 additions & 92 deletions output/openapi/elasticsearch-openapi.json

Large diffs are not rendered by default.

334 changes: 242 additions & 92 deletions output/openapi/elasticsearch-serverless-openapi.json

Large diffs are not rendered by default.

295 changes: 113 additions & 182 deletions output/schema/schema.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions specification/_global/count/CountRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,6 @@ export interface Request extends RequestBase {
* By default, it is random.
*/
preference?: string
/**
* 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.
*/
Expand All @@ -171,5 +159,17 @@ export interface Request extends RequestBase {
* with the `q` query string parameter.
*/
query?: QueryContainer
/**
* Specifies a subset of projects to target 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
}
}
12 changes: 0 additions & 12 deletions specification/_global/field_caps/FieldCapabilitiesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,6 @@ export interface Request extends RequestBase {
* @server_default true
*/
include_empty_fields?: boolean
/**
* Specifies a subset of projects to target for the field-caps query 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
}
body?: {
/**
Expand Down
12 changes: 0 additions & 12 deletions specification/_global/open_point_in_time/OpenPointInTimeRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,6 @@ export interface Request extends RequestBase {
* By default, it is random.
*/
preference?: string
/**
* 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
/**
* A custom value that is used to route operations to a specific shard.
*/
Expand Down
12 changes: 0 additions & 12 deletions specification/_global/search/SearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,6 @@ export interface Request extends RequestBase {
* * The primary sort of the query targets an indexed field.
*/
pre_filter_shard_size?: long
/**
* 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
/**
* If `true`, the caching of search results is enabled for requests where `size` is `0`.
* It defaults to index level settings.
Expand Down
12 changes: 0 additions & 12 deletions specification/async_search/submit/AsyncSearchSubmitRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,6 @@ export interface Request extends RequestBase {
* @server_default random
*/
preference?: string
/**
* 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
/**
* Specify if request cache should be used for this request or not, defaults to true
* @server_default true
Expand Down
20 changes: 11 additions & 9 deletions specification/cat/count/CatCountRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export interface Request extends CatRequestBase {
urls: [
{
path: '/_cat/count'
methods: ['GET']
methods: ['GET', 'POST']
},
{
path: '/_cat/count/{index}'
methods: ['GET']
methods: ['GET', 'POST']
}
]
path_parts: {
Expand All @@ -60,7 +60,15 @@ export interface Request extends CatRequestBase {
*/
h?: CatCountColumns
/**
* Specifies a subset of projects to target for the search using project
* List of columns that determine how the table should be sorted.
* Sorting defaults to ascending and can be changed by setting `:asc`
* or `:desc` as a suffix to the column name.
*/
s?: Names
}
body?: {
/**
* Specifies a subset of projects to target using project
* metadata tags in a subset of Lucene query syntax.
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
* Examples:
Expand All @@ -71,11 +79,5 @@ export interface Request extends CatRequestBase {
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
*/
project_routing?: ProjectRouting
/**
* List of columns that determine how the table should be sorted.
* Sorting defaults to ascending and can be changed by setting `:asc`
* or `:desc` as a suffix to the column name.
*/
s?: Names
}
}
14 changes: 7 additions & 7 deletions specification/eql/search/EqlSearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ export interface Request extends RequestBase {
*/
keep_on_completion?: boolean
/**
* Specifies a subset of projects to target for the search using project
* Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results.
*/
wait_for_completion_timeout?: Duration
}
body: {
/**
* Specifies a subset of projects to target using project
* metadata tags in a subset of Lucene query syntax.
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
* Examples:
Expand All @@ -110,12 +116,6 @@ export interface Request extends RequestBase {
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
*/
project_routing?: ProjectRouting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see project_routing in the body for EQL or SQL, but I'm pretty sure support for them was added in the code. @luigidellaquila is that right?

If yes, @pawankartik-elastic, can you add those here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I've added them.

/**
* Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results.
*/
wait_for_completion_timeout?: Duration
}
body: {
/**
* EQL query you wish to run.
* @doc_id eql-syntax
Expand Down
4 changes: 3 additions & 1 deletion specification/indices/resolve_index/ResolveIndexRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface Request extends RequestBase {
urls: [
{
path: '/_resolve/index/{name}'
methods: ['GET']
methods: ['GET', 'POST']
}
]
path_parts: {
Expand Down Expand Up @@ -78,6 +78,8 @@ export interface Request extends RequestBase {
* @availability serverless stability=stable visibility=public
*/
mode?: IndexMode | IndexMode[]
}
body?: {
/**
* Specifies a subset of projects to target using project
* metadata tags in a subset of Lucene query syntax.
Expand Down
24 changes: 12 additions & 12 deletions specification/sql/query/QuerySqlRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ export interface Request extends RequestBase {
* @ext_doc_id sql-rest-format
*/
format?: SqlFormat
/**
* 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
}
body: {
/**
Expand Down Expand Up @@ -139,6 +127,18 @@ export interface Request extends RequestBase {
* @ext_doc_id sql-spec
*/
query?: string
/**
* Specifies a subset of projects to target 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
/**
* The timeout before the request fails.
* @server_default 90s
Expand Down