Mapping

Mapping in Elasticsearch is similar to the schema in Relational DB.

Elasticsearch will create a dynamic mapping for the new index when the user index new documents to it.

We can use _template API to define index template.

We can also modfiy the mapping of an index.