Unfortunately, Google Mashup APIs provide displaying 8 ("large") or 4 ("small") results per the single API call.
In Mashups4JSF, you can display 8 rows by setting the GoogleSearchServiceParameters.RSZ to "large":
public String getWebSearchResultList() {
List<ServiceParameter> searchParameters = new ArrayList<ServiceParameter>();
System.out.println("search query is: " + searchQuery);
searchParameters.add(new ServiceParameter(GoogleSearchServiceParameters.QUERY, searchQuery));
searchParameters.add(new ServiceParameter(GoogleSearchServiceParameters.RSZ, "large"));
try {
results = GoogleServicesFactory.getGoogleSearchService().getWebSearchResultList(searchParameters);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
On Thu, Oct 18, 2012 at 1:53 AM, Marcio Brambilla
<brambill...@gmail.com> wrote:
Anyone know how to return more than 8 results on google?
--