|
1 | 1 | [[elasticsearch-net-breaking-changes]] |
2 | 2 | == Elasticsearch.Net Breaking Changes |
3 | 3 |
|
4 | | -This lists *all* the binary breaking changes in Elasticsearch.Net from 5.x to 6.x. The intention in providing such a list |
5 | | -is to allow one to quickly search |
| 4 | +This lists *all* the binary breaking changes in Elasticsearch.Net from 5.x ({github}/tree/e8013698ab5e4fec1b310ecd724f66f472746fed[last commit in 5.x at time of 6.0.0 GA release]) to 6.x ({github}/tree/6.0.0[6.0.0 GA release]). The intention in providing such a large list |
| 5 | +is to allow you to quickly and easily search the changes between the two major versions, to understand what has been removed and |
| 6 | +equally importantly, what has been added. |
6 | 7 |
|
7 | 8 | [float] |
8 | 9 | === Requests |
@@ -137,15 +138,15 @@ Since 1.x, request parameters were fluent e.g. |
137 | 138 |
|
138 | 139 | [source,csharp] |
139 | 140 | ---- |
140 | | -client.Search<dynamic>(r=>r.Parameter())` |
| 141 | +client.Search<dynamic>(r => r.Parameter())` |
141 | 142 | ---- |
142 | 143 |
|
143 | 144 | This was done back in the day to facilitate the high-level client but was never truly needed. |
144 | 145 | Now, the low-level client is using |
145 | 146 |
|
146 | 147 | [source,csharp] |
147 | 148 | ---- |
148 | | -client.Search<DynamicResponse>(new SearchRequestParameters { Parameter = .. })`. |
| 149 | +client.Search<DynamicResponse>(new SearchRequestParameters { Parameter = .. })`. |
149 | 150 | ---- |
150 | 151 |
|
151 | 152 | This change affects the following: |
@@ -2700,13 +2701,13 @@ Dictionary<String, Object> |
2700 | 2701 | [float] |
2701 | 2702 | === Responses |
2702 | 2703 |
|
2703 | | -In previous version any `client.Operation<T>(..)` accepted `string` `byte[]`, `dynamic`, `Stream`, `VoidResponse`, or any object to |
2704 | | -deserialize the response into as `T` and returned an `ElasticsearchResponse<T>`. |
| 2704 | +In previous version any `client.Operation<T>(..)` accepted `string` `byte[]`, `dynamic`, `Stream`, `VoidResponse`, or any object to |
| 2705 | +deserialize the response into as `T` and returned an `ElasticsearchResponse<T>`. |
2705 | 2706 |
|
2706 | 2707 | We are now stricter and constrained `T` to `IElasticsearchResponse` and always return T directly. |
2707 | 2708 |
|
2708 | 2709 | To help ease the common use cases we ship with an `BytesResponse`, `StringResponse`, `DynamicResponse`, |
2709 | | -`VoidResponse` and `ElasticsearchResponse<T>` where `T` can again be any object to deserialize the response into. |
| 2710 | +`VoidResponse` and `ElasticsearchResponse<T>` where `T` can again be any object to deserialize the response into. |
2710 | 2711 |
|
2711 | 2712 | In previous versions the low level client was in charge of reading deserialized exceptions from Elasticsearch |
2712 | 2713 | and short circuited if a bad HTTP status code was returned to do so. Omitting the deserializer all together. |
|
0 commit comments