Defining a document's storage and indexing strategy for the fields it includes is known as mapping. Each document consists of a number of fields, each of which has a different data type. You make a mapping definition, which includes a list of fields relevant to the document, when you map your data. Metadata fields in a mapping definition can also be used to control how a document's related metadata is handled, such as the _source field.