Job Posting Data
...
Jobs Data API
Endpoints
Elasticsearch DSL
6min
data type job query type elasticsearch domain specific language (es dsl) url https //api coresignal com/cdapi /v2/job base/search/es dsl overview use the /v2/job base/search/es dsl endpoint for more sophisticated queries https //www elastic co/guide/en/elasticsearch/reference/current/query dsl fuzzy query html for example, you can use fuzzy and wildcard queries in the endpoint additionally, the endpoint allows you to operate filters that mimic our job posting data, enabling you to write more sophisticated queries than using the /v2/job base/search/filter endpoint elasticsearch schema https //docs coresignal com/api/jobs data api esdsl endpoint#ydf3i refer to the jobs elasticsearch schema sorting options https //docs coresignal com/api/jobs data api esdsl endpoint#rb5do information on possible sorting options limitations https //docs coresignal com/api/jobs data api esdsl endpoint#u58u5 information about the endpoint limitations elasticsearch schema elastic schema "mappings" { "properties" { "id" { "type" "long" }, "created" { "type" "date", "format" "yyyy mm dd hh\ mm\ ss" }, "last updated" { "type" "date", "format" "yyyy mm dd hh\ mm\ ss" }, "time posted" { "type" "text", "index" false }, "title" { "type" "text" }, "description" { "type" "text" }, "seniority" { "type" "text", "fields" { "exact" { "type" "keyword", "null value" "null" } } }, "employment type" { "type" "text" }, "location" { "type" "text" }, "url" { "type" "text", "index" false }, "hash" { "type" "text", "index" false }, "company id" { "type" "long" }, "company name" { "type" "text", "fields" { "exact" { "type" "keyword", "null value" "null" } } }, "external url" { "type" "text" }, "company url" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "deleted" { "type" "byte" }, "application active" { "type" "byte" }, "salary" { "type" "text", "index" false }, "applicants count" { "type" "text", "fields" { "exact" { "type" "keyword", "null value" "null" } } }, "professional network job id" { "type" "long", "index" false }, "country" { "type" "text" }, "redirected url" { "type" "text" }, "job industry collection" { "type" "nested", "properties" { "job industry list" { "properties" { "industry" { "type" "text" } } } } }, "job company website" { "type" "text", "fields" { "exact" { "type" "keyword", "null value" "null" }, "domain only" { "type" "text" } } }, "job functions collection" { "type" "text", "fields" { "exact" { "type" "keyword", "null value" "null" } } } } } sorting options you can choose between two sorting options sort by id or score if you omit the sort part entirely, the sorting will be by id by default sorting by score enables you to view search results in order of relevance, with the most relevant items appearing first sorting by id arranges the list of ids in ascending order, starting from the smallest value and progressing to the largest all company information mentioned within this context is entirely fictional and is solely intended for illustrative purposes c hoose the sorting type in the sort section of the endpoint payload endpoint payload { "query" {}, "sort" \[ null ] } sort by id { "query" { "match" { "company name" { "query" "example company", "operator" "and" } } }, "sort" \[ "id" ] } sort by score { "query" { "match" { "company name" { "query" "example company", "operator" "and" } } }, "sort" \[ " score" ] } limitations we do not own the functions and syntax that this endpoint operates in for all specific elasticsearch dsl information, please refer to their official documentation the endpoint accepts the query object of a standard elasticsearch request no matter the content of the query, the search only returns the record id (like all other search endpoints) queries in this endpoint are limited to 15,000 characters search returns 1000 results per page the maximum number of clauses a booleanquery can contain (number of boolean operators within the query) is 1024 more information on elasticsearch dsl do your elasticsearch dsl endpoints support analytics features? no, the analytics features are not supported in our elasticsearch dsl endpoints is it possible to search for a boolean value? yes the elastic search query includes a parameter bool that indicates to return results if they meet the criteria is there a way to exclude results? use an elastic search boolean query with a must not clause for example, the following query will search for all members with current or past experience in company id 5181133 and exclude all members with experience in company id 3252082 example query { "query" { "nested" { "path" "member experience collection", "query" { "bool" { "must" \[ { "query string" { "query" 5181133, "default field" "member experience collection company id", "default operator" "and" } }, { "bool" { "must not" \[ { "query string" { "query" 3252082, "default field" "member experience collection company id", "default operator" "and" } } ] } } ] } } } } }