update elasticsearch mappings.