|
4 | 4 | IMPORTANT: Indices created in Elasticsearch 6.0.0 or later may only contain a |
5 | 5 | single <<mapping-type,mapping type>>. Indices created in 5.x with multiple |
6 | 6 | mapping types will continue to function as before in Elasticsearch 6.x. |
7 | | -Mapping types will be completely removed in Elasticsearch 7.0.0. |
| 7 | +Types will be deprecated in APIs in Elasticsearch 7.0.0, and completely |
| 8 | +removed in 8.0.0. |
8 | 9 |
|
9 | 10 | [float] |
10 | 11 | === What are mapping types? |
@@ -254,25 +255,28 @@ Elasticsearch 6.x:: |
254 | 255 |
|
255 | 256 | * The `_default_` mapping type is deprecated. |
256 | 257 |
|
| 258 | +* In 6.7, the index creation, index template, and mapping APIs support a query |
| 259 | + string parameter (`include_type_name`) which indicates whether requests and |
| 260 | + responses should include a type name. It defaults to `true`, and not setting |
| 261 | + `include_type_name=false` will result in a deprecation warning. Indices which |
| 262 | + don't have an explicit type will use the dummy type name `_doc`. |
| 263 | + |
257 | 264 | Elasticsearch 7.x:: |
258 | 265 |
|
259 | | -* The `type` parameter in URLs are optional. For instance, indexing |
260 | | - a document no longer requires a document `type`. |
| 266 | +* Specifying types in requests is deprecated. For instance, indexing a |
| 267 | + document no longer requires a document `type`. The new index APIs |
| 268 | + are `PUT {index}/_doc/{id}` in case of explicit ids and `POST {index}/_doc` |
| 269 | + for auto-generated ids. |
261 | 270 |
|
262 | | -* The `GET|PUT _mapping` APIs support a query string parameter |
263 | | - (`include_type_name`) which indicates whether the body should include |
264 | | - a layer for the type name. It defaults to `true`. 7.x indices which |
265 | | - don't have an explicit type will use the dummy type name `_doc`. |
| 271 | +* The `include_type_name` parameter in the index creation, index template, |
| 272 | + and mapping APIs will default to `false`. Setting the parameter will result |
| 273 | + in a deprecation warning. |
266 | 274 |
|
267 | 275 | * The `_default_` mapping type is removed. |
268 | 276 |
|
269 | 277 | Elasticsearch 8.x:: |
270 | 278 |
|
271 | | -* The `type` parameter is no longer supported in URLs. |
272 | | - |
273 | | -* The `include_type_name` parameter defaults to `false`. |
274 | | - |
275 | | -Elasticsearch 9.x:: |
| 279 | +* Specifying types in requests is no longer supported. |
276 | 280 |
|
277 | 281 | * The `include_type_name` parameter is removed. |
278 | 282 |
|
@@ -416,4 +420,3 @@ POST _reindex |
416 | 420 | } |
417 | 421 | ---- |
418 | 422 | // NOTCONSOLE |
419 | | - |
|
0 commit comments