When you add data to Elasticsearch, it needs to know what type each field is, like text or number. You can tell it exactly by making an explicit mapping before adding data. Then, only those fields are allowed. If you try to add a new field not in the mapping, it will reject it. Or, you can let Elasticsearch guess the types by using dynamic mapping. It looks at your data and adds new fields automatically. But if later you add a field with a different type, it causes an error. This example showed how explicit mapping accepts only known fields and dynamic mapping adds new fields on the fly. Understanding this helps you decide how to organize your data in Elasticsearch.