|
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? |
@@ -256,30 +257,28 @@ Elasticsearch 6.x:: |
256 | 257 |
|
257 | 258 | * The `_default_` mapping type is deprecated. |
258 | 259 |
|
| 260 | +* In 6.7, the index creation, index template, and mapping APIs support a query |
| 261 | + string parameter (`include_type_name`) which indicates whether requests and |
| 262 | + responses should include a type name. It defaults to `true`, and not setting |
| 263 | + `include_type_name=false` will result in a deprecation warning. Indices which |
| 264 | + don't have an explicit type will use the dummy type name `_doc`. |
| 265 | + |
259 | 266 | Elasticsearch 7.x:: |
260 | 267 |
|
261 | | -* The `type` parameter in URLs are deprecated. For instance, indexing |
262 | | - a document no longer requires a document `type`. The new index APIs |
| 268 | +* Specifying types in requests is deprecated. For instance, indexing a |
| 269 | + document no longer requires a document `type`. The new index APIs |
263 | 270 | are `PUT {index}/_doc/{id}` in case of explicit ids and `POST {index}/_doc` |
264 | 271 | for auto-generated ids. |
265 | 272 |
|
266 | | -* The index creation, `GET|PUT _mapping` and document APIs support a query |
267 | | - string parameter (`include_type_name`) which indicates whether requests and |
268 | | - responses should include a type name. It defaults to `true`. |
269 | | - 7.x indices which don't have an explicit type will use the dummy type name |
270 | | - `_doc`. Not setting `include_type_name=false` will result in a deprecation |
271 | | - warning. |
| 273 | +* The `include_type_name` parameter in the index creation, index template, |
| 274 | + and mapping APIs will default to `false`. Setting the parameter will result |
| 275 | + in a deprecation warning. |
272 | 276 |
|
273 | 277 | * The `_default_` mapping type is removed. |
274 | 278 |
|
275 | 279 | Elasticsearch 8.x:: |
276 | 280 |
|
277 | | -* The `type` parameter is no longer supported in URLs. |
278 | | - |
279 | | -* The `include_type_name` parameter is deprecated, default to `false` and fails |
280 | | - the request when set to `true`. |
281 | | - |
282 | | -Elasticsearch 9.x:: |
| 281 | +* Specifying types in requests is no longer supported. |
283 | 282 |
|
284 | 283 | * The `include_type_name` parameter is removed. |
285 | 284 |
|
@@ -423,4 +422,3 @@ POST _reindex |
423 | 422 | } |
424 | 423 | ---- |
425 | 424 | // NOTCONSOLE |
426 | | - |
0 commit comments