Searches for jobs using the provided SearchJobsRequest
.
This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.
This call constrains the visibility
of jobs present in the database, and only returns jobs the caller has permission to search against.
HTTP request
POST https://jobs.googleapis.com/v4/{parent=projects/*/tenants/*}/jobs:searchForAlert
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The resource name of the tenant to search within. The format is "projects/{projectId}/tenants/{tenantId}". For example, "projects/foo/tenants/bar". |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "searchMode": enum ( |
Fields | |
---|---|
search |
Mode of a search. Defaults to |
request |
Required. The meta information collected about the job searcher, used to improve the search quality of the service. The identifiers (such as |
job |
Query used to search against jobs, such as keyword, location filters, etc. |
enable |
Controls whether to broaden the search when it produces sparse results. Broadened queries append results to the end of the matching results list. Defaults to false. |
histogram |
An expression specifies a histogram request against matching jobs. Expression syntax is an aggregation function call with histogram facets and other options. Available aggregation function calls are: * A maximum of 200 histogram buckets are supported. Data types:
Built-in constants:
Built-in functions:
Job histogram facets:
Example expressions:
|
job |
The desired job attributes returned for jobs in the search response. Defaults to |
offset |
An integer that specifies the current offset (that is, starting result location, amongst the jobs deemed by the API as relevant) in search results. This field is only considered if The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching job, and 10 means to return from the 11th job. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page). |
max |
A limit on the number of jobs returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100. |
page |
The token specifying the current offset within search results. See |
order |
The criteria determining how search results are sorted. Default is Supported options are:
|
diversification |
Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly similar based on their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results. Defaults to |
custom |
Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm). |
disableKeywordMatch |
This field is deprecated. Please use To migrate, disableKeywordMatch set to false maps to Controls whether to disable exact keyword match on For queries like "cloud" that don't contain title or location specific ontology, jobs with "cloud" keyword matches are returned regardless of this flag's value. Use Defaults to false. |
keyword |
Controls what keyword match options to use. If both keywordMatchMode and disableKeywordMatch are set, keywordMatchMode will take precedence. Defaults to |
relevance |
Optional. The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. |
Response body
If successful, the response body contains an instance of SearchJobsResponse
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/jobs
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.