You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+43-19Lines changed: 43 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,30 @@
1
+
# 8.4.0
2
+
3
+
## API
4
+
5
+
*`get`, `mget` and `search` added `force_synthetic_source`: Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.
6
+
*`ML.StartTrainedModelDeployment` added `cache_size`: A byte-size value for configuring the inference cache size. For example, 20mb.
7
+
*`Snapshot.Get` added `sort`, `size`, `order`, `from_sort_value`, `after`, `offset` and `slm_policy_filter`. More on these in the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/get-snapshot-api.html).
As highlighted in the release not for the 8.4.0-alpha.1, this release marks the beginning of the newly arrived `TypedClient`.
16
+
17
+
This new API is still in `alpha` stage and will be release alongside the existing `esapi`.
18
+
19
+
A few examples of standard use-cases can be found in the [TypedAPI section of the documentation](https://www.elastic.co/guide/en/elasticsearch/client/go-api/master/typedapi.html).
20
+
21
+
# 8.4.0-alpha.2
22
+
23
+
This second prerelease of the 8.4.0 updates the API for the client and fixes the serialization for types using [additional properties](https://github.com/elastic/elasticsearch-specification/blob/main/docs/behaviors.md#additionalproperties--additionalproperty).
24
+
1
25
# 8.4.0-alpha.1
2
26
3
-
This prerelease introduces a new typed API generated from the [elasticsearch-specification](https://github.com/elastic/elasticsearch-specification). This generation from the common specification allows us to provide a complete API which uses an exhaustive hierarchy of types reflecting the possibilities given by Elasticsearch.
27
+
This prerelease introduces a new typed API generated from the [elasticsearch-specification](https://github.com/elastic/elasticsearch-specification). This generation from the common specification allows us to provide a complete API which uses an exhaustive hierarchy of types reflecting the possibilities given by Elasticsearch.
4
28
5
29
This new API is the next iteration of the Go client for Elasticsearch, it now lives alongside the existing API, it is in `alpha` state and will gain features over time and releases.
6
30
@@ -11,19 +35,19 @@ The `TypedClient` is built around a fluent builder for easier request creation a
11
35
As a first example, here is a search request:
12
36
```go
13
37
cfg:= elasticsearch.Config{
14
-
// Define your configuration
38
+
// Define your configuration
15
39
}
16
40
es, _:= elasticsearch.NewTypedClient(cfg)
17
41
res, err:= es.Search().
18
-
Index("index_name").
19
-
Request(&search.Request{
20
-
Query: &types.QueryContainer{
21
-
Match: map[types.Field]types.MatchQuery{
22
-
"name": {Query: "Foo"},
23
-
},
24
-
},
25
-
},
26
-
).Do(context.Background())
42
+
Index("index_name").
43
+
Request(&search.Request{
44
+
Query: &types.QueryContainer{
45
+
Match: map[types.Field]types.MatchQuery{
46
+
"name": {Query: "Foo"},
47
+
},
48
+
},
49
+
},
50
+
).Do(context.Background())
27
51
```
28
52
29
53
The `Request` uses the structures found in the `typedapi/types` package which will lead you along the possibilities. A builder for each structure that allows easier access and declaration is also provided.
@@ -64,7 +88,7 @@ Feedback is very welcome, play with it, use it, let us know what you think!
64
88
## Client
65
89
66
90
* Fixed a serialisation error for `retry_on_conflict` in the BulkIndexer. Thanks to @lpflpf for the help!
67
-
* Fixed a concurrent map error in the BulkIndexer when custom headers are applied. Thanks to @chzhuo for the contribution!
91
+
* Fixed a concurrent map error in the BulkIndexer when custom headers are applied. Thanks to @chzhuo for the contribution!
68
92
69
93
## API
70
94
@@ -83,11 +107,11 @@ Feedback is very welcome, play with it, use it, let us know what you think!
83
107
# 8.1.0
84
108
## API
85
109
86
-
* API is generated from the Elasticsearch 8.1.0 specification.
110
+
* API is generated from the Elasticsearch 8.1.0 specification.
87
111
88
112
**New parameters**
89
113
90
-
*`WithWaitForCompletion` for `Indices.Forcemerge`
114
+
*`WithWaitForCompletion` for `Indices.Forcemerge`
91
115
*`WithFeatures` for `Indices.Get`
92
116
*`WithForce` for `ML.DeleteTrainedModel`
93
117
@@ -99,14 +123,14 @@ Feedback is very welcome, play with it, use it, let us know what you think!
99
123
# 8.0.0
100
124
## Client
101
125
102
-
* The client now uses `elastic-transport-go` dependency which lives in its [own repository](https://github.com/elastic/elastic-transport-go/).
103
-
* With the knewly extracted transport, the `retryOnTimeout` has been replaced with a `retryOnError` callback. This allows to select more finely which error should be retried by the client.
104
-
*`BulkIndexerItem``Body` field is now an `io.ReadSeeker` allowing reread without increasing memory consumption.
105
-
*`BulkIndexerItem` know correctly uses the `routing` property instead of the deprecated `_routing`.
126
+
* The client now uses `elastic-transport-go` dependency which lives in its [own repository](https://github.com/elastic/elastic-transport-go/).
127
+
* With the knewly extracted transport, the `retryOnTimeout` has been replaced with a `retryOnError` callback. This allows to select more finely which error should be retried by the client.
128
+
*`BulkIndexerItem``Body` field is now an `io.ReadSeeker` allowing reread without increasing memory consumption.
129
+
*`BulkIndexerItem` know correctly uses the `routing` property instead of the deprecated `_routing`.
106
130
107
131
## API
108
132
109
-
* API is generated from the Elasticsearch 8.0.0 specification.
133
+
* API is generated from the Elasticsearch 8.0.0 specification.
0 commit comments