Skip to content
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .buildkite/run-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ELASTICSEARCH_BUILD_VERSION=$(curl -sSk $external_elasticsearch_url | jq -r '.ve
ELASTICSEARCH_BUILD_HASH=$(curl -sSk $external_elasticsearch_url | jq -r '.version.build_hash')

echo -e "\033[34;1mINFO:\033[0m Download Elasticsearch specs... \033[0m"
docker run --volume=$WORKSPACE/tmp:/tmp --workdir=/go-elasticsearch/internal/build --rm elastic/go-elasticsearch /bin/sh -c "
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 "
go mod download
go run main.go download-spec -o /tmp -d
"
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
# 9.1.0

# API

* Updated APIs to 9.1.0

# Typed API

* Update TypedAPI to latest [elasticsearch-specification 9.1](https://github.com/elastic/elasticsearch-specification/commit/907d11a)
* This release introduces a new `MethodAPI` used by the `TypedClient` which makes the client friendlier for dead code elimination.
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.

# 8.19.0

# API

* Updated APIs to 8.19.0

# Typed API

* Update TypedAPI to latest [elasticsearch-specification 8.19](https://github.com/elastic/elasticsearch-specification/commit/470b4b9)

# 9.0.1

# API

* Updated APIs to 9.0.4

# Typed API

* Update TypedAPI to latest [elasticsearch-specification 9.0](https://github.com/elastic/elasticsearch-specification/commit/e585438)

# 9.0.0

* The client now requires **Go 1.23** or later.
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type Client struct {
// TypedClient represents the Typed API.
type TypedClient struct {
BaseClient
*typedapi.API
*typedapi.MethodAPI
}

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

if cfg.DiscoverNodesOnStart {
go client.DiscoverNodes()
Expand Down
20 changes: 19 additions & 1 deletion esapi/api._.go

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

24 changes: 24 additions & 0 deletions esapi/api.cluster.get_component_template.go

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

24 changes: 12 additions & 12 deletions esapi/api.cluster.put_component_template.go

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

24 changes: 24 additions & 0 deletions esapi/api.create.go

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

2 changes: 0 additions & 2 deletions esapi/api.indices.put_data_stream_options.go

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

Loading
Loading