REST API returning partial matches

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
candell
User
Posts: 17
Joined: Wed Sep 28, 2016 11:38 am

REST API returning partial matches

Post by candell »

Hi

I noticed something today that I didn't expect. A search on clientCorporation.name for "Bob Smith"

Code: Select all

GET https://rest23.bullhornstaffing.com/rest-services/2xurxg/search/ClientCorporation?fields=name&count=2&meta=off&query=name%3A%28%22Bob+Smith%22%29&sort=id 
Will return companies such as

Bob Smith Ltd
Bob Smith Corp

where I would have expected a direct match.

Is this expected behavior? Does this matching apply to all fields (including candidate emails which is what I use to look up candidate info)?

Thanks
jenmays
User
Posts: 10
Joined: Wed Feb 17, 2021 12:38 pm

Re: REST API returning partial matches

Post by jenmays »

Yes, because you have searched for "Bob Smith," your results will be any clientCorporation with "Bob," a space," and "Smith" in the name. It doesn't exclude results with additional words before or after the quotes. This is how the search function works inside of the application.

When searching for email addresses, this wouldn't be an issue, as an email address is generally a unique identifier with no spaces. If you were to search for "bob@smith.com," then your results would include only "bob@smith.com."
Post Reply