Mapping versioning by using doc_type