Page 1 of 1

Searching in Array

Posted: Sun Sep 30, 2018 7:50 am
by kinim0d
Is there any way to search in an array (e.g. skillSet) using search?

I have tried this and a couple other options, but I was never able to fetch candidates this way:

https://rest22.bullhornstaffing.com/res ... ry=id:1099 AND (business) MEMBER OF skillSet&count=12&start=0&BhRestToken=...

In this search I was trying to get the cadidate with 1099 who has "business" in his skillSet, but no results were returned.

Re: Searching in Array

Posted: Mon Nov 05, 2018 2:41 pm
by DanJSupport
Hi Kinim0d,

MEMBER OF is restricted to certain association fields. The skillSet field is a string. So you would want to use a format such as this:

Code: Select all

GET /search/Candidate?fields={fields}&sort=-id&start=0&count=25&query=isDeleted:0  AND skillSet:(+Business) AND NOT status:Archive&&BhRestToken=