Elasticsearch Define Dynamic Mapping

This question looks like How to define mapping in runtime, so I'll close it in favour of the other post.