From df7cfb3a5bc7f1bfa1f7bcfb964bc9e116a77e53 Mon Sep 17 00:00:00 2001 From: Julie Tibshirani Date: Mon, 23 Mar 2020 15:34:23 -0700 Subject: [PATCH] Remove the top-level 'mapping type' section. (#54035) It seemed confusing for users that our top-level mapping page still had a prominent section named 'Mapping Type'. This PR reworks the docs to remove this reference and adds a note about types removal (similar to the note we added to other APIs like put mapping). --- docs/reference/mapping.asciidoc | 19 ++++++------------- docs/reference/mapping/fields.asciidoc | 2 +- .../mapping/fields/type-field.asciidoc | 6 +++--- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/docs/reference/mapping.asciidoc b/docs/reference/mapping.asciidoc index 3f89571ae58..96153f5e2a3 100644 --- a/docs/reference/mapping.asciidoc +++ b/docs/reference/mapping.asciidoc @@ -13,29 +13,22 @@ are stored and indexed. For instance, use mappings to define: * custom rules to control the mapping for <>. -[float] -[[mapping-type]] -== Mapping Type - -Each index has one _mapping type_ which determines how the document will be -indexed. - -deprecated::[6.0.0,See <>] - -A mapping type has: +A mapping definition has: <>:: Meta-fields are used to customize how a document's metadata associated is treated. Examples of meta-fields include the document's -<>, <>, -<>, and <> fields. +<>, <>, and +<> fields. <> or _properties_:: -A mapping type contains a list of fields or `properties` pertinent to the +A mapping contains a list of fields or `properties` pertinent to the document. +NOTE: Before 7.0.0, the 'mappings' definition used to include a type name. +For more details, please see <>. [float] [[field-datatypes]] diff --git a/docs/reference/mapping/fields.asciidoc b/docs/reference/mapping/fields.asciidoc index f6d5f00a9b5..0ea4b77441c 100644 --- a/docs/reference/mapping/fields.asciidoc +++ b/docs/reference/mapping/fields.asciidoc @@ -15,7 +15,7 @@ can be customised when a mapping type is created. <>:: - The document's <>. + The document's mapping type. <>:: diff --git a/docs/reference/mapping/fields/type-field.asciidoc b/docs/reference/mapping/fields/type-field.asciidoc index 2c83596e42d..9c74e7e6644 100644 --- a/docs/reference/mapping/fields/type-field.asciidoc +++ b/docs/reference/mapping/fields/type-field.asciidoc @@ -3,9 +3,9 @@ deprecated[6.0.0,See <>] -Each document indexed is associated with a <> (see -<>) and an <>. The `_type` field is -indexed in order to make searching by type name fast. +Each document indexed is associated with a <> and +an <>. The `_type` field is indexed in order to make +searching by type name fast. The value of the `_type` field is accessible in queries, aggregations, scripts, and when sorting: