# Joblake Mapping

The **Joblake Mapping** defines how job-related data is structured in **Elasticsearch**. Below is a structured breakdown of its attributes:

#### **1. Job Details**

* **job\_title**: Title of the job (e.g., Software Engineer)
* **job\_department**: The department to which the job belongs
* **job\_location**:
  * **city**: City where the job is located
  * **state**: State of job location
  * **country**: Country of the job
  * **remote**: Whether the job is remote

#### **2. Company Information**

* **company\_name**: Name of the company
* **company\_industry**: Industry type (e.g., IT, Finance)
* **company\_size**: Size of the company

#### **3. Employment Details**

* **employment\_type**: Type of employment (Full-time, Contract, etc.)
* **experience\_required**: Required experience level
* **education\_required**:
  * **degree**: Required degree (e.g., Bachelor's, Master's)
  * **major**: Field of study
  * **preferred\_university**: Preferred university

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

* **skills\_required**: List of required skills
* **preferred\_certifications**:
  * **name**: Certification name
  * **issuing\_organization**: Organization that issued the certification

#### **5. Compensation**

* **salary\_range**:
  * **min**: Minimum salary
  * **max**: Maximum salary
* **equity**: Whether equity is provided
* **bonuses**: Whether bonuses are included

#### **6. Additional Information**

* **benefits**: Employee benefits
* **company\_culture**: Description of the company's work culture
* **recruiter\_contact**:
  * **name**: Recruiter's name
  * **email**: Recruiter's email
  * **phone**: Recruiter's phone

### Example Payload

```python
joblake_mapping = {
    "properties": {
        "job_title": {"type": "text"},
        "job_department": {"type": "text"},
        "job_location": {
            "properties": {
                "city": {"type": "text"},
                "state": {"type": "text"},
                "country": {"type": "text"},
                "remote": {"type": "boolean"}
            }
        },
        "company_name": {"type": "text"},
        "company_industry": {"type": "text"},
        "company_size": {"type": "keyword"},
        "employment_type": {"type": "keyword"},
        "experience_required": {"type": "text"},
        "education_required": {
            "type": "nested",
            "properties": {
                "degree": {"type": "keyword"},
                "major": {"type": "text"},
                "preferred_university": {"type": "text"}
            }
        },
        "skills_required": {"type": "keyword"},
        "preferred_certifications": {
            "type": "nested",
            "properties": {
                "name": {"type": "text"},
                "issuing_organization": {"type": "text"}
            }
        },
        "job_responsibilities": {"type": "text"},
        "preferred_experience": {
            "type": "nested",
            "properties": {
                "designation": {"type": "text"},
                "industry": {"type": "text"},
                "company_type": {"type": "text"},
                "min_years": {"type": "integer"},
                "max_years": {"type": "integer"}
            }
        },
        "languages_required": {
            "type": "nested",
            "properties": {
                "language": {"type": "text"},
                "proficiency": {"type": "keyword"}
            }
        },
        "technologies_used": {"type": "keyword"},
        "compensation": {
            "properties": {
                "salary_range": {
                    "properties": {
                        "min": {"type": "keyword"},
                        "max": {"type": "keyword"}
                    }
                },
                "equity": {"type": "boolean"},
                "bonuses": {"type": "boolean"}
            }
        },
        "benefits": {"type": "keyword"},
        "company_culture": {"type": "text"},
        "recruiter_contact": {
            "properties": {
                "name": {"type": "text"},
                "email": {"type": "keyword"},
                "phone": {"type": "keyword"}
            }
        },
        "application_deadline": {"type": "date", "format": "yyyy-MM-dd"}
    }
}
```
