[[mapping-fields]] == Metadata fields Each document has metadata associated with it, such as the `_index`, mapping <>, and `_id` metadata fields. The behavior of some of these metadata fields can be customized when a mapping type is created. [discrete] === Identity metadata fields [horizontal] <>:: The index to which the document belongs. <>:: The document's mapping type. <>:: The document's ID. [discrete] === Document source metadata fields <>:: The original JSON representing the body of the document. {plugins}/mapper-size.html[`_size`]:: The size of the `_source` field in bytes, provided by the {plugins}/mapper-size.html[`mapper-size` plugin]. [discrete] === Indexing metadata fields <>:: All fields in the document which contain non-null values. <>:: All fields in the document that have been ignored at index time because of <>. [discrete] === Routing metadata field <>:: A custom routing value which routes a document to a particular shard. [discrete] === Other metadata field <>:: Application specific metadata. include::fields/field-names-field.asciidoc[] include::fields/ignored-field.asciidoc[] include::fields/id-field.asciidoc[] include::fields/index-field.asciidoc[] include::fields/meta-field.asciidoc[] include::fields/routing-field.asciidoc[] include::fields/source-field.asciidoc[] include::fields/type-field.asciidoc[]