Fixed bug when mapping domain to Elasticsearch type name