# Resumelake Mapping

The **Resumelake Mapping** defines how candidate resumes are structured in **Elasticsearch**. Below is a breakdown of its attributes:

#### **1. Personal Information**

* **candidate\_name**: Full name of the candidate
* **candidate\_email**: Candidate's email address
* **candidate\_phone**: Contact number
* **candidate\_city**: City of residence
* **candidate\_state**: State of residence
* **candidate\_country**: Country of residence

#### **2. Work Experience**

* **current\_designation**: Candidate’s current job title
* **current\_company**: Candidate’s current employer
* **current\_company\_industry**: Industry type (IT, Finance, etc.)
* **previous\_experience**:
  * **designation**: Job title
  * **company**: Employer name
  * **industry**: Industry type
  * **start\_date**: Start date
  * **end\_date**: End date
  * **location**: Location of the job

#### **3. Education**

* **degree**: Degree obtained (e.g., Bachelor’s, Master’s)
* **major**: Field of study
* **university**: University attended
* **graduation\_year**: Year of graduation

#### **4. Skills & Certifications**

* **skills**: List of relevant skills
* **certifications**:
  * **name**: Certification name
  * **issuing\_organization**: Organization that issued the certification
  * **issue\_date**: Date when the certification was issued

#### **5. Languages**

* **language**: Language spoken
* **proficiency**: Proficiency level (Basic, Fluent, Native)

#### **6. Projects & Publications**

* **projects**:
  * **title**: Project name
  * **description**: Brief summary
  * **technologies**: Technologies used
  * **role**: Candidate’s role in the project
* **publications**:
  * **title**: Publication title
  * **publication**: Where it was published
  * **year**: Year of publication

### Example Payload

```python
resumelake_mapping = {
        "properties": {
            "candidate_name": {"type": "text"},
            "candidate_email": {"type": "keyword"},
            "candidate_phone": {"type": "keyword"},
            "candidate_city": {"type": "text"},
            "candidate_state": {"type": "text"},
            "candidate_country": {"type": "text"},
            "linkedin_profile": {"type": "keyword"},
            "github_profile": {"type": "keyword"},
            "portfolio_website": {"type": "keyword"},
            "current_designation": {"type": "text"},
            "current_company": {"type": "text"},
            "current_company_industry": {"type": "text"},
            "current_company_size": {"type": "keyword"},
            "current_company_start_date": {"type": "date", "format": "yyyy-MM"},
            "previous_experience": {
                "type": "nested",
                "properties": {
                    "designation": {"type": "text"},
                    "company": {"type": "text"},
                    "industry": {"type": "text"},
                    "start_date": {"type": "date", "format": "yyyy-MM"},
                    "end_date": {"type": "date", "format": "yyyy-MM"},
                    "location": {"type": "text"}
                }
            },
            "total_work_experience": {"type": "keyword"},
            "education": {
                "type": "nested",
                "properties": {
                    "degree": {"type": "text"},
                    "major": {"type": "text"},
                    "university": {"type": "text"},
                    "graduation_year": {"type": "integer"}
                }
            },
            "skills": {"type": "keyword"},
            "certifications": {
                "type": "nested",
                "properties": {
                    "name": {"type": "text"},
                    "issuing_organization": {"type": "text"},
                    "issue_date": {"type": "date", "format": "yyyy-MM"}
                }
            },
            "languages": {
                "type": "nested",
                "properties": {
                    "language": {"type": "text"},
                    "proficiency": {"type": "keyword"}
                }
            },
            "projects": {
                "type": "nested",
                "properties": {
                    "title": {"type": "text"},
                    "description": {"type": "text"},
                    "technologies": {"type": "keyword"},
                    "role": {"type": "text"}
                }
            },
            "publications": {
                "type": "nested",
                "properties": {
                    "title": {"type": "text"},
                    "publication": {"type": "text"},
                    "year": {"type": "integer"}
                }
            },
            "awards": {
                "type": "nested",
                "properties": {
                    "title": {"type": "text"},
                    "organization": {"type": "text"},
                    "year": {"type": "integer"}
                }
            },
            "references": {
                "type": "nested",
                "properties": {
                    "name": {"type": "text"},
                    "designation": {"type": "text"},
                    "company": {"type": "text"},
                    "email": {"type": "keyword"}
                }
            }
        }
    }
```
