Page 1 of 1

Candidate /search via lookupNames

Posted: Wed Feb 11, 2015 12:46 pm
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}&"^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 ("^name=\'2D CAD\'")\': Cannot get field meta for \'\'.'}

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


it comes back with this for

u 'type' : u 'INTEGER',
u 'name' : u '',
u 'isSortable' : True,
u 'lookupNames' : [{
u 'names' : [u 'name']

So this should be possible? Am I missing something obvious?

Re: Candidate /search via lookupNames

Posted: Fri Feb 27, 2015 4:33 pm
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/

I hope this helps!

Re: Candidate /search via lookupNames

Posted: Tue Feb 11, 2020 6:00 am
by sahilbwi
Can we add multiple skills id in the search query ?? :) :)