LPAMNijoel / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

Unexpected search results #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
        LinkedInApiClientFactory factory = LinkedInApiClientFactory
                .newInstance(CONSUMER_KEY, CONSUMER_SECRET);
        LinkedInApiClient client = factory.createLinkedInApiClient(
                ACCESS_TOKEN, TOKEN_SECRET);
        Map<SearchParameter, String> searchParameters = new EnumMap<SearchParameter, String>(
                SearchParameter.class);
        searchParameters.put(SearchParameter.KEYWORDS, "ACM");
        Set<ProfileField> set = ProfileField.valuesForConnections();
        set.add(ProfileField.API_STANDARD_PROFILE_REQUEST);
        set.add(ProfileField.EDUCATIONS);
        People people = client.searchPeople(searchParameters, set, 0, 10);
        while (people.getPersonList().size() > 0) {

            for (Person person : people.getPersonList()) {
            // Deal with the data;
            }

            people = client.searchPeople(searchParameters, set, count, 10+count);
        }

What is the expected output? What do you see instead?
I tried to search on LinkedIn official site with the keyword "ACM", it returns 
thousands of results. However, when I use my code (see above), it produced only 
110 results.

What version of the product are you using? On what operating system?
Version: 1.0.415
OS: Ubuntu 11.10

Please provide any additional information below.
The returned results did not have "Educations" in it. And when I open the 
profile url on my web browser, I can see the educations for that person.
I am new to linkedin-j and thank you for helping me with these basic issues.

Original issue reported on code.google.com by Ethanhua...@gmail.com on 28 Nov 2011 at 9:42