Search all candidates that belong to a partiucular category.

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
cnguyen.ins
User
Posts: 1
Joined: Fri Jul 25, 2014 11:10 am

Search all candidates that belong to a partiucular category.

Post by cnguyen.ins » Fri Jul 25, 2014 11:45 am

Hi,

Let assume I made this Lucene search:
search/Candidate&query=firstName:Alex&fields=id,firstName, categories(name)

It return this result:
{
"total": 5,
"start": 0,
"count": 5,
"data": [
{
"id": 47490,
"firstName": "Alex",
"categories": {
"total": 2,
"data": [
{
"id": 981049,
"name": "Graphic & Web Design"
},
{
"id": 981043,
"name": "Digital"
}
]
},
"_score": 9.111818
}
}

Now instead of searching by "firstName", I wanted to search by "digital categories". So I do this:
1) search/Candidate&query=categories.data.name:digital&fields=id,firstName, categories(name)
or
2) search/Candidate&query=categories.name:digital&fields=id,firstName, categories(name)

None of the above return any result. I'm guessing based on the JSON result above, the "categories" field is an array/object therefore the lucene query i used above doesnt work.

Can you advise on how to search for all candidates that belongs to a "digital" category?

Thanks,

Cam

Post Reply