Search API current-company

7 posts / 0 new
Last post
Salick Cogan's picture
Joined: 09/20/2011
Wed, 02/22/2012 - 08:37
Search API current-company

Hello,

current-company field doesn't seem to do what it says in the documentation.
For example, when I search without the current-company field for company X I get less results than the search for current-company=true.
How can this be possible?

Kirsten Jones's picture
Joined: 06/30/2011
Wed, 02/22/2012 - 08:51

Please post the calls you're making so that we can help you troubleshoot.

Salick Cogan's picture
Joined: 09/20/2011
Wed, 02/22/2012 - 09:15

sort=relevance
For example:
company-name=HP
current-company=true
start=0
count=10
people-search:(people:(id,first-name,last-name,headline,picture-url,educations,location,industry,three-current-positions,date-of-birth,public-profile-url))

I just omit the current-company to receive all results, but I actually receive less.

Salick Cogan's picture
Joined: 09/20/2011
Wed, 02/22/2012 - 09:16

From fiddler:
GET http://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url,educations,location,industry,three-current-positions,date-of-birth,public-profile-url))?format=json&sort=relevance&company-name=HP&current-company=true&start=0&count=10 HTTP/1.1
Authorization: OAuth oauth_consumer_key="pgr642w1iold",oauth_nonce="g5vzb1rx0g40t7uz",oauth_signature="KvwBN5uKdzsKQM2aECCi0zV3Umg%3D",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1329930864",oauth_token="a8e7d644-b6aa-4e88-99ac-81194b763373",oauth_version="1.0"
Host: api.linkedin.com
Connection: Keep-Alive

Kirsten Jones's picture
Joined: 06/30/2011
Wed, 02/22/2012 - 09:45

I see the same (capped) results for current-company=true and not - 1100. Can you show me the count/total header from your responses?

Salick Cogan's picture
Joined: 09/20/2011
Thu, 02/23/2012 - 07:35

You're right, I forgot I'm screening private entries...That makes sense.

Jeremy Johnstone's picture
Developer Advocate
Joined: 04/17/2011
Tue, 02/28/2012 - 19:07

Hi Salick,

Great! Thanks for taking the time to post back so we know your issue is resolved. :)

-Jeremy