Candidate /search via secondarySkills.id lookupNames

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
iforshaw
User
Posts: 1
Joined: Wed Feb 11, 2015 12:12 pm

Candidate /search via secondarySkills.id lookupNames

Post by iforshaw »

I'm trying to query candidates by secondarySkills using a lucene lookup query.

like this:
{rest_url}/{corp_token}/search/Candidate?orderBy=id&count=50&fields=id,name&start=0&BhRestToken={rest_token}&query=primarySkills.id:"^name='2D CAD'"

However I'm getting an error:
{u'errorMessage': u'Search failed: Bad Query: Cannot parse \'(aclIsPrivate:0 OR aclOwnerId:{owner_id_redacted}) AND (primarySkills.id:"^name=\'2D CAD\'")\': Cannot get field meta for \'primarySkills.id\'.'}

The documentation states you can only use lookup queries for fields with "lookupNames" but if I query the candidate entity for metadata like this:

{rest_url}/{corp_token}/search/Candidate?BhRestToken={rest_token}

it comes back with this for primarySkills.id:

{
u 'type' : u 'INTEGER',
u 'name' : u 'primarySkills.id',
u 'isSortable' : True,
u 'lookupNames' : [{
u 'names' : [u 'name']
}]
},

So this should be possible? Am I missing something obvious?
raleigh
User
Posts: 13
Joined: Mon Apr 28, 2014 4:24 pm

Re: Candidate /search via secondarySkills.id lookupNames

Post by raleigh »

Hello iforshaw.

If you're attempting to query candidates by "secondarySkills", I cannot see why you are using the field "primarySkills" in your /GET call. Also, if you are going to query on .id, the command requires a number be added for the ID.

Please use this format for querying for candidates by their secondarySkills:

{corp token}/search/candidate?query/where=secondarySkills.id:####

I hope this helps!
sahilbwi
User
Posts: 1
Joined: Thu Nov 14, 2019 6:13 am

Re: Candidate /search via secondarySkills.id lookupNames

Post by sahilbwi »

Can we add multiple skills id in the search query ?? :) :)
Post Reply