Skip to content

Commit 6000e55

Browse files
authored
[main/9.1] Update APIs (#1025)
* Update TypedAPI to v9.1.0 (cf6914e) * Tests: Use nominal payload for get_alias * Update API to v9.1.0 (9732617) * Update TypedAPI to v9.1.0 (e585438) * Adapt TypedClient to use MethodAPI * Tests: exclude non generated knn search endpoint * Update skip list * CI: propagate ELASTICSEARCH_BUILD_VERSION to test downloader container * Update TypedAPI to v9.1.0 (907d11a) * add 9.1.0 changelog
1 parent 07c98dd commit 6000e55

File tree

4,680 files changed

+51630
-24803
lines changed

Some content is hidden

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

4,680 files changed

+51630
-24803
lines changed

.buildkite/run-repository.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ELASTICSEARCH_BUILD_VERSION=$(curl -sSk $external_elasticsearch_url | jq -r '.ve
4141
ELASTICSEARCH_BUILD_HASH=$(curl -sSk $external_elasticsearch_url | jq -r '.version.build_hash')
4242

4343
echo -e "\033[34;1mINFO:\033[0m Download Elasticsearch specs... \033[0m"
44-
docker run --volume=$WORKSPACE/tmp:/tmp --workdir=/go-elasticsearch/internal/build --rm elastic/go-elasticsearch /bin/sh -c "
44+
docker run -e ELASTICSEARCH_BUILD_VERSION=$ELASTICSEARCH_BUILD_VERSION --volume=$WORKSPACE/tmp:/tmp --workdir=/go-elasticsearch/internal/build --rm elastic/go-elasticsearch /bin/sh -c "
4545
go mod download
4646
go run main.go download-spec -o /tmp -d
4747
"

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# 9.1.0
2+
3+
# API
4+
5+
* Updated APIs to 9.1.0
6+
7+
# Typed API
8+
9+
* Update TypedAPI to latest [elasticsearch-specification 9.1](https://github.com/elastic/elasticsearch-specification/commit/907d11a)
10+
* This release introduces a new `MethodAPI` used by the `TypedClient` which makes the client friendlier for dead code elimination.
11+
Reducing the size of the client when only a subset of the APIs are used. The old `API` structure remains available for backward compatibility, but it is now deprecated.
12+
13+
# 8.19.0
14+
15+
# API
16+
17+
* Updated APIs to 8.19.0
18+
19+
# Typed API
20+
21+
* Update TypedAPI to latest [elasticsearch-specification 8.19](https://github.com/elastic/elasticsearch-specification/commit/470b4b9)
22+
23+
# 9.0.1
24+
25+
# API
26+
27+
* Updated APIs to 9.0.4
28+
29+
# Typed API
30+
31+
* Update TypedAPI to latest [elasticsearch-specification 9.0](https://github.com/elastic/elasticsearch-specification/commit/e585438)
32+
133
# 9.0.0
234

335
* The client now requires **Go 1.23** or later.

elasticsearch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ type Client struct {
151151
// TypedClient represents the Typed API.
152152
type TypedClient struct {
153153
BaseClient
154-
*typedapi.API
154+
*typedapi.MethodAPI
155155
}
156156

157157
// NewBaseClient creates a new client free of any API.
@@ -249,7 +249,7 @@ func NewTypedClient(cfg Config) (*TypedClient, error) {
249249
compatibilityHeader: cfg.EnableCompatibilityMode || compatibilityHeader,
250250
},
251251
}
252-
client.API = typedapi.New(client)
252+
client.MethodAPI = typedapi.NewMethodAPI(client)
253253

254254
if cfg.DiscoverNodesOnStart {
255255
go client.DiscoverNodes()

esapi/api._.go

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esapi/api.cluster.get_component_template.go

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

esapi/api.cluster.put_component_template.go

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

esapi/api.create.go

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

esapi/api.indices.put_data_stream_options.go

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

0 commit comments

Comments
 (0)