# Elasticsearch DSL: Base Employee API

{% columns %}
{% column width="16.666666666666664%" %}
Data type:

Query type:

URL:
{% endcolumn %}

{% column %}
Base Employee

Elasticsearch DSL

<https://api.coresignal.com/cdapi/v2/employee\\_base/search/es\\_dsl>
{% endcolumn %}
{% endcolumns %}

***

## Overview

Use the `/v2/employee_base/search/es_dsl` endpoint to find company data matching your specifications.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>General Elasticsearch DSL information and usage tips</td><td><a href="../../../api-introduction/requests/elasticsearch-dsl">elasticsearch-dsl</a></td></tr></tbody></table>

## Elasticsearch schema

<details>

<summary>Elasticsearch schema</summary>

{% code title="Base Employee API schema" expandable="true" %}

```json
{
    "mappings": {
        "properties": {
            "id": {
                "type": "long"
            },
            "parent_id": {
                "type": "long"
            },
            "is_parent": {
                "type": "byte"
            },
            "full_name": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "first_name": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "last_name": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "headline": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "checked_at": {
                "type": "date",
                "format": "yyyy-MM-dd HH:mm:ss"
            },
            "public_profile_id": {
                "type": "text"
            },
            "profile_url": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword"
                    }
                }
            },
            "location": {
                "type": "text"
            },
            "industry": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "summary": {
                "type": "text"
            },
            "services": {
                "type": "text"
            },
            "profile_photo_url": {
                "type": "keyword",
                "index": false,
                "doc_values": false
            },
            "country": {
                "type": "keyword",
                "null_value": "NULL"
            },
            "country_iso_2": {
                "type": "keyword",
                "null_value": "NULL"
            },
            "country_iso_3": {
                "type": "keyword",
                "null_value": "NULL"
            },
            "recommendations_count": {
                "type": "long",
                "null_value": -1
            },
            "connections_count": {
                "type": "long",
                "null_value": -1
            },
            "follower_count": {
                "type": "long",
                "null_value": -1
            },
            "experience_count": {
                "type": "long",
                "null_value": -1
            },
            "shorthand_name": {
                "type": "keyword"
            },
            "canonical_shorthand_name": {
                "type": "keyword"
            },
            "created_at": {
                "type": "date",
                "format": "yyyy-MM-dd HH:mm:ss"
            },
            "updated_at": {
                "type": "date",
                "format": "yyyy-MM-dd HH:mm:ss"
            },
            "deleted": {
                "type": "byte"
            },
            "regions": {
                "type": "nested",
                "properties": {
                    "region": {
                        "type": "keyword"
                    }
                }
            },
            "shorthand_names": {
                "type": "nested",
                "properties": {
                    "shorthand_name": {
                        "type": "keyword"
                    }
                }
            },
            "historical_ids": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    }
                }
            },
            "awards": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text"
                    },
                    "issuer": {
                        "type": "text"
                    },
                    "description": {
                        "type": "text"
                    },
                    "date": {
                        "type": "date",
                        "format": "MMM uuuu||uuuu",
                        "locale": "en",
                        "ignore_malformed": true,
                        "index": false,
                        "doc_values": false
                    },
                    "date_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_day": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "certifications": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "issuer": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "credential_id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "certificate_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "certificate_logo_url": {
                        "type": "text",
                        "index": false
                    },
                    "issuer_url": {
                        "type": "text"
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "date_from": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "courses": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "organizer": {
                        "type": "text"
                    },
                    "title": {
                        "type": "text"
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "course_suggestions": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "course_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte",
                        "index": false,
                        "doc_values": false
                    }
                }
            },
            "education": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "institution": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "program": {
                        "type": "text"
                    },
                    "date_from": {
                        "type": "date",
                        "format": "MMMM uuuu||uuuu",
                        "locale": "en",
                        "null_value": "1000",
                        "ignore_malformed": true
                    },
                    "date_from_year": {
                        "type": "long"
                    },
                    "date_to": {
                        "type": "date",
                        "format": "MMMM uuuu||uuuu",
                        "locale": "en",
                        "null_value": "1000",
                        "ignore_malformed": true
                    },
                    "date_to_year": {
                        "type": "long"
                    },
                    "activities_and_societies": {
                        "type": "text"
                    },
                    "description": {
                        "type": "text"
                    },
                    "institution_url": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword"
                            }
                        }
                    },
                    "institution_shorthand_name": {
                        "type": "keyword"
                    },
                    "institution_logo_url": {
                        "type": "text",
                        "index": false
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss"
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss"
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "experience": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "location": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "company_id": {
                        "type": "long"
                    },
                    "company_source_id": {
                        "type": "long"
                    },
                    "company_name": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "company_url": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword"
                            }
                        }
                    },
                    "company_url_shorthand_name": {
                        "type": "keyword"
                    },
                    "company_url_canonical_shorthand_name": {
                        "type": "keyword"
                    },
                    "company_industry": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "company_website": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            },
                            "domain_only": {
                                "type": "text"
                            }
                        }
                    },
                    "company_employees_count": {
                        "type": "long"
                    },
                    "company_size": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL",
                                "ignore_above": 256
                            }
                        }
                    },
                    "company_logo_url": {
                        "type": "text",
                        "index": false
                    },
                    "date_from": {
                        "type": "date",
                        "format": "MMMM uuuu||uuuu",
                        "locale": "en",
                        "null_value": "1000",
                        "ignore_malformed": true
                    },
                    "date_from_year": {
                        "type": "long"
                    },
                    "date_from_month": {
                        "type": "long"
                    },
                    "date_to": {
                        "type": "date",
                        "format": "MMMM uuuu||uuuu",
                        "locale": "en",
                        "null_value": "1000",
                        "ignore_malformed": true
                    },
                    "date_to_year": {
                        "type": "long"
                    },
                    "date_to_month": {
                        "type": "long"
                    },
                    "is_current": {
                        "type": "byte"
                    },
                    "duration": {
                        "type": "keyword"
                    },
                    "description": {
                        "type": "text"
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss"
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss"
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "languages": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "language": {
                        "type": "text"
                    },
                    "proficiency": {
                        "type": "text"
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "organizations": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "organization": {
                        "type": "text"
                    },
                    "position": {
                        "type": "text"
                    },
                    "description": {
                        "type": "text"
                    },
                    "date_from": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "patents": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text"
                    },
                    "status": {
                        "type": "text"
                    },
                    "inventors": {
                        "type": "nested",
                        "properties": {
                            "full_name": {
                                "type": "keyword",
                                "index": false,
                                "doc_values": false
                            },
                            "profile_url": {
                                "type": "keyword",
                                "index": false,
                                "doc_values": false
                            },
                            "order_in_profile": {
                                "type": "long",
                                "index": false,
                                "doc_values": false
                            }
                        }
                    },
                    "date": {
                        "type": "date",
                        "format": "MMM uuuu||uuuu",
                        "locale": "en",
                        "ignore_malformed": true,
                        "index": false,
                        "doc_values": false
                    },
                    "date_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_day": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "patent_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "description": {
                        "type": "text"
                    },
                    "patent_or_application_number": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "projects": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "name": {
                        "type": "text"
                    },
                    "project_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "description": {
                        "type": "text"
                    },
                    "date_from": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "team_members": {
                        "type": "nested",
                        "properties": {
                            "full_name": {
                                "type": "keyword",
                                "index": false,
                                "doc_values": false
                            },
                            "profile_url": {
                                "type": "keyword",
                                "index": false,
                                "doc_values": false
                            },
                            "order_in_profile": {
                                "type": "long",
                                "index": false,
                                "doc_values": false
                            }
                        }
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "publications": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text"
                    },
                    "publisher": {
                        "type": "text"
                    },
                    "date": {
                        "type": "date",
                        "format": "MMM uuuu||uuuu",
                        "locale": "en",
                        "ignore_malformed": true,
                        "index": false,
                        "doc_values": false
                    },
                    "date_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_day": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "description": {
                        "type": "text"
                    },
                    "authors": {
                        "type": "nested",
                        "properties": {
                            "full_name": {
                                "type": "keyword",
                                "index": false,
                                "doc_values": false
                            },
                            "profile_url": {
                                "type": "keyword",
                                "index": false,
                                "doc_values": false
                            },
                            "order_in_profile": {
                                "type": "long",
                                "index": false,
                                "doc_values": false
                            }
                        }
                    },
                    "publication_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "recommendations": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "recommendation": {
                        "type": "text"
                    },
                    "full_name": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "referee_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "similar_profiles": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "profile_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "full_name": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "headline": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "location": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "company": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "followers": {
                        "type": "text",
                        "fields": {
                            "exact": {
                                "type": "keyword",
                                "null_value": "NULL"
                            }
                        }
                    },
                    "order_in_profile": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    }
                }
            },
            "others_named": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "profile_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "full_name": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "headline": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "location": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    }
                }
            },
            "test_scores": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text"
                    },
                    "date": {
                        "type": "date",
                        "format": "MMM uuuu||uuuu",
                        "locale": "en",
                        "ignore_malformed": true,
                        "index": false,
                        "doc_values": false
                    },
                    "date_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_day": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "description": {
                        "type": "text"
                    },
                    "score": {
                        "type": "text"
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "volunteering_positions": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "organization": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "role": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "cause": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_from_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_year": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "date_to_month": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "duration": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "description": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "organization_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "organization_shorthand_name": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte",
                        "index": false,
                        "doc_values": false
                    }
                }
            },
            "websites": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "personal_website": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "order_in_profile": {
                        "type": "long",
                        "index": false,
                        "doc_values": false
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte",
                        "index": false,
                        "doc_values": false
                    }
                }
            },
            "activity": {
                "type": "nested",
                "properties": {
                    "id": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "activity_url": {
                        "type": "keyword",
                        "index": false,
                        "doc_values": false
                    },
                    "title": {
                        "type": "text"
                    },
                    "action": {
                        "type": "text"
                    },
                    "order_in_profile": {
                        "type": "long"
                    },
                    "created_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "updated_at": {
                        "type": "date",
                        "format": "yyyy-MM-dd HH:mm:ss",
                        "index": false,
                        "doc_values": false
                    },
                    "deleted": {
                        "type": "byte"
                    }
                }
            },
            "city": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "state": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword",
                        "null_value": "NULL"
                    }
                }
            },
            "inferred_skills": {
                "type": "text",
                "fields": {
                    "exact": {
                        "type": "keyword"
                    }
                }
            }
        }
    }
}
```

{% endcode %}

</details>

{% hint style="success" %}

#### Having trouble writing Elasticsearch queries on your own?

Explore **AI query builder** feature available in Self-service [playground](https://dashboard.coresignal.com/apis/employees/playground). Write a prompt, and AI assistant will automatically convert it into a query.
{% endhint %}

### Sample request

{% code title="Request example" expandable="true" %}

```json
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/es_dsl' \
  -H 'accept: application/json' \
  -H 'apikey: {API Key}' \
  -H 'Content-Type: application/json' \
  -d '{
   "query":{
      "match":{
         "full_name":{
            "query":"John Smith",
            "operator":"and"
         }
      }
   }
}'
```

{% endcode %}

### Sorting options

Find several examples of the available sorting options. All information about the sorting is in the general [Elasticsearch DSL](https://docs.coresignal.com/api-introduction/requests/elasticsearch-dsl#sorting-options) topic.

{% tabs %}
{% tab title="Sort by score" %}
{% code title="Sort by score" %}

```json
{
    "query": {
      "match":{
         "company_name":{
            "query":"Google",
            "operator":"and"
         }
      }
   },
    "sort": [
        "_score"
    ]
}
```

{% endcode %}
{% endtab %}

{% tab title="Sort by id" %}
{% code title="Sort by id" %}

```json
{
    "query": {
      "match":{
         "company_name":{
            "query":"Google",
            "operator":"and"
         }
      }
   },
    "sort": [
        "id"
    ]
}
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coresignal.com/employee-api/base-employee-api/endpoints/elasticsearch-dsl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
