Employee Data
...
Endpoints
Elasticsearch DSL
6 min
data type employee posts query type elasticsearch domain specific language (es dsl) url https //api coresignal com/cdapi /v2/post employee/search/es dsl overview use the /v2/post employee/search/es dsl endpoint to find company data matching your specifications elasticsearch schema allows you to use more sophisticated queries like fuzzy and wildcard queries additionally, the endpoint allows you to operate filters that mimic our employee posts data elasticsearch dsl docid\ uiz86flubqilemcs 1dvl refer to the employee posts api elasticsearch schema elasticsearch dsl docid\ uiz86flubqilemcs 1dvl information about possible sorting options elasticsearch dsl /#limitations information about the endpoint limitations elasticsearch schema elasticsearch structure maps directly to our employee posts data points es dsl schema { "mappings" { "properties" { "id" { "type" "keyword" }, "url" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "author name" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "author profile url" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "author headline" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "author posts count" { "type" "long" }, "date published" { "type" "date" }, "article body" { "type" "text" }, "image url" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "hashtags" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "mentions" { "type" "nested", "properties" { "full name" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "url" { "type" "text", "fields" { "exact" { "type" "keyword" } } } } }, "reaction count" { "type" "long" }, "comment count" { "type" "long" }, "comments" { "type" "nested", "properties" { "full name" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "headline" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "profile url" { "type" "text", "fields" { "exact" { "type" "keyword" } } }, "body" { "type" "text" }, "reaction count" { "type" "long" }, "date published" { "type" "date" } } } } } } 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 choose the sorting type in the sort section of the endpoint payload endpoint payload { "query" {}, "sort" \[ null ] } sort by score { "query" { "match" { "company name" { "query" "google", "operator" "and" } } }, "sort" \[ " score" ] } sort by id { "query" { "match" { "company name" { "query" "google", "operator" "and" } } }, "sort" \[ "id" ] } 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 record ids (like all other search endpoints) queries in this endpoint are limited to 15,000 characters 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 itself 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