How to copy only mapping not data

It looks like you are asking about the same error here - Error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"analyzer [analyzer_keyword] not found for field - so let's just keep this one about your original question in this topic