query takes in each mode, the fields a people search can filter on with the operator each accepts and what a request looks like.
People requests go to POST /search/people. For companies, see Company search.
Writing queries
The shape ofquery follows the search mode:
- Ludicrous takes a JSON object of conditions on the searchable fields, combined with
and,orandnot. Operators and value shapes are in Business Search query syntax. - Instant and Smart take a plain-language sentence of up to 200 characters. Business Search turns the sentence into one structured query on the same fields. A sentence that asks for a job title is ranked on the title, role and about text together. A sentence that reads like a recruiting brief, with a role, an industry and a skill, is scored on the
role,companyandskillfield groups independently.
Searchable fields
The operator a field accepts depends on the field’s type. Text fields accept only thetext operator. Typed fields, such as strings and integers, accept equals, in and range. Sending equals to a text field returns HTTP 400.
Location and employer fields can be missing from individual profiles, and a missing value is not evidence that the fact is false: a profile with no
current_company_name publishes no employer. Handle absent or null values without failing the whole record, and avoid filters that silently drop every profile where an optional field is blank.Example request
- Ludicrous
- Instant
- Smart
A Ludicrous request finds US profiles whose current title includes both Sample responseThe first of the three returned records:
product and manager, with at least 1,000 followers, and names five output fields:Sample requestmode: "all" inside the text condition requires every search word to match. The words do not need to form an exact phrase, so a title of “Senior Manager, Product” still matches. Punctuation between the words does not prevent a match, word order does not matter and extra words in the title are allowed.view relates to query, see Business Search field views.