Cloud Talent Search job_query

Hello,

I am trying to implement a simple search for Project Managers in Seattle and I've been having trouble getting the query to work. Duet just keeps telling me to update google-cloud-talent and/or giving me fixes that don't work. I can't seem to get it to increase the search radius beyond 0.0 miles and get no search results returned. I'd also like to search for specific job titles but it seems those methods have all been removed -- so I am left with job_categories.

Any help is much appreciated!

Here is a snippet of the section of code doing the filtering:

 

 

 

 

 

 

location_filter=[talent.LocationFilter(address="Seattle, WA, USA", distance_in_miles = 10.0)]

job_query = talent.JobQuery(
    job_categories=["COMPUTER_AND_IT"],
    location_filters=location_filter,
)
order_by = "relevance desc"
#page_size = 10
request = talent.SearchJobsRequest(
    parent=parent,
    request_metadata=request_metadata,
    job_query=job_query,
    order_by=order_by,
#    page_size=page_size,
)
response = client.search_jobs(request=request)
print(response)  

 

 

 

 

 

 

and the response I get:

 

 

 

 

 

 

location_filters {
  location_type: LOCALITY
  postal_address {
    region_code: "US"
    administrative_area: "WA"
    locality: "Seattle"
    address_lines: "Seattle, WA, USA"
  }
  lat_lng {
    latitude: 47.6061389
    longitude: -122.3328481
  }
  radius_miles: 0.0063236770219927173
}
metadata {
  request_id: "a11ef08d-8ac4-4000-b244-7233556f008f:APAb7ITr+CvD+seZAzAQ+U5vKdAG26g1xg=="
}

 

 

 

 

 

 

  

0 0 45
0 REPLIES 0