Skip to content

Commit 5f42d52

Browse files
Merge branch 'main' into ES-12830
2 parents a04602e + 5d8e077 commit 5f42d52

File tree

291 files changed

+2237
-1420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+2237
-1420
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema.json

Lines changed: 838 additions & 480 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: 60 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ apis,https://www.elastic.co/docs/api/doc/elasticsearch,,
44
add-nodes,https://www.elastic.co/docs/deploy-manage/maintenance/add-and-remove-elasticsearch-nodes,,
55
ai21-api-models,https://docs.ai21.com/docs/jamba-foundation-models,,
66
ai21-rate-limit,https://docs.ai21.com/reference/api-rate-limits,,
7-
alias-update,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-alias,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/indices-add-alias.html,
8-
aliases-update,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-update-aliases,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/indices-aliases.html,
7+
alias-update,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-alias,https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-add-alias.html,Create or update an alias
8+
aliases,https://www.elastic.co/docs/manage-data/data-store/aliases,,Aliases
9+
aliases-update,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-update-aliases,https://www.elastic.co/guide/en/elasticsearch/reference/8.19/indices-aliases.html,Create or update aliases
910
alibabacloud-api-keys,https://opensearch.console.aliyun.com/cn-shanghai/rag/api-key,,
1011
analysis-analyzers,https://www.elastic.co/docs/reference/text-analysis/analyzer-reference,,
1112
amazonbedrock-models,https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html,,
@@ -902,6 +903,9 @@ stop-dfanalytics,https://www.elastic.co/docs/api/doc/elasticsearch/operation/ope
902903
stop-trained-model-deployment,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-trained-model-deployment,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/stop-trained-model-deployment.html,
903904
stop-transform,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-stop-transform,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/stop-transform.html,
904905
stored-fields,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#stored-fields,,
906+
streams-status,https://www.elastic.co/docs/api/doc/elasticsearch#TODO,,
907+
streams-logs-enable,https://www.elastic.co/docs/api/doc/elasticsearch#TODO,,
908+
streams-logs-disable,https://www.elastic.co/docs/api/doc/elasticsearch#TODO,,
905909
synonym-api-examples,https://www.elastic.co/docs/solutions/search/full-text/create-update-synonyms-api-example,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-synonyms-set.html,
906910
synonym-rule-create,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym-rule,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-synonym-rule.html,
907911
synonym-rule-delete,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym-rule,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-synonym-rule.html,

specification/_global/count/CountRequest.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, Indices, Routing } from '@_types/common'
21+
import {
22+
ExpandWildcards,
23+
Indices,
24+
ProjectRouting,
25+
Routing
26+
} from '@_types/common'
2227
import { double, long } from '@_types/Numeric'
2328
import { QueryContainer } from '@_types/query_dsl/abstractions'
2429
import { Operator } from '@_types/query_dsl/Operator'
@@ -124,6 +129,18 @@ export interface Request extends RequestBase {
124129
* By default, it is random.
125130
*/
126131
preference?: string
132+
/**
133+
* Specifies a subset of projects to target for the search using project
134+
* metadata tags in a subset of Lucene query syntax.
135+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
136+
* Examples:
137+
* _alias:my-project
138+
* _alias:_origin
139+
* _alias:*pr*
140+
* Supported in serverless only.
141+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
142+
*/
143+
project_routing?: ProjectRouting
127144
/**
128145
* A custom value used to route operations to a specific shard.
129146
*/

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+
* metadata tags in a subset of Lucene query syntax.
113+
* Allowed Lucene queries: the _alias tag and a single value (possibly 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/msearch/MultiSearchRequest.ts

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

2020
import { RequestBase } from '@_types/Base'
21-
import { ExpandWildcards, Indices, Routing, SearchType } from '@_types/common'
21+
import {
22+
ExpandWildcards,
23+
Indices,
24+
ProjectRouting,
25+
Routing,
26+
SearchType
27+
} from '@_types/common'
2228
import { integer, long } from '@_types/Numeric'
2329
import { RequestItem } from './types'
2430

@@ -117,6 +123,17 @@ export interface Request extends RequestBase {
117123
* Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint.
118124
*/
119125
pre_filter_shard_size?: long
126+
/**
127+
* Specifies a subset of projects to target for a search using project metadata
128+
* tags in a subset Lucene syntax. Allowed Lucene queries: the _alias tag
129+
* and a single value (possible wildcarded). Examples:
130+
* _alias:my-project
131+
* _alias:_origin
132+
* _alias:*pr*
133+
* Supported in serverless only.
134+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
135+
*/
136+
project_routing?: ProjectRouting
120137
/**
121138
* If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object.
122139
* @server_default false

specification/_global/msearch/types.ts

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

2020
import { ErrorResponseBase } from '@_types/Base'
21-
import { ExpandWildcards, Indices, Routing, SearchType } from '@_types/common'
21+
import {
22+
ExpandWildcards,
23+
Indices,
24+
ProjectRouting,
25+
Routing,
26+
SearchType
27+
} from '@_types/common'
2228
import { integer, long } from '@_types/Numeric'
2329
import { SearchRequestBody } from '@global/search/_types/SearchRequestBody'
2430
import { ResponseBody as SearchResponse } from '@global/search/SearchResponse'
@@ -37,6 +43,7 @@ export class MultisearchHeader {
3743
ignore_unavailable?: boolean
3844
index?: Indices
3945
preference?: string
46+
project_routing?: ProjectRouting
4047
request_cache?: boolean
4148
routing?: Routing
4249
search_type?: SearchType

specification/_global/msearch_template/MultiSearchTemplateRequest.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 { Indices, SearchType } from '@_types/common'
21+
import { Indices, ProjectRouting, SearchType } from '@_types/common'
2222
import { long } from '@_types/Numeric'
2323
import { RequestItem } from './types'
2424

@@ -75,6 +75,18 @@ export interface Request extends RequestBase {
7575
* The maximum number of concurrent searches the API can run.
7676
*/
7777
max_concurrent_searches?: long
78+
/**
79+
* Specifies a subset of projects to target for the search using project
80+
* metadata tags in a subset of Lucene query syntax.
81+
* Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
82+
* Examples:
83+
* _alias:my-project
84+
* _alias:_origin
85+
* _alias:*pr*
86+
* Supported in serverless only.
87+
* @availability serverless stability=stable visibility=feature_flag feature_flag=serverless.cross_project.enabled
88+
*/
89+
project_routing?: ProjectRouting
7890
/**
7991
* The type of the search operation.
8092
*/

0 commit comments

Comments
 (0)