Hi folks, For this and other Custom Search API-related questions, it would be great if you could post to the Custom Search forum at https://groups.google.com/a/googleproductforums.com/forum/#!forum/customsearch
By consolidating questions for this product and API there, we hope to be able to answer them quick for you. Thanks, Adam On Thu, Dec 15, 2011 at 7:21 AM, Jeremy Geerdes <[email protected]> wrote: > Well, this is truly strange. I'm not sure what's going on, but here's what > I've discovered: if you call customSearchControl.setResultSetSize with a > number as the argument (e.g., 4), it applies to the image searcher. But if > you submit google.search.Search.SMALL_RESULTSET (which translates to > 'small'), it doesn't apply to the image searcher. I'm trying to contact the > writer of the script, but it's still a bit early for him. > > Jeremy R. Geerdes > Generally Cool Guy > Des Moines, IA > > For more information or a project quote: > [email protected] > > If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan > Church! > > On Dec 15, 2011, at 8:22 AM, Insun He wrote: > > > Thanks for the response. > > > > Here is the link. http://www.insundesign.com/2011Image_Search/cse.html > > > > What I am trying to do is to fit the image search result inside the > > div by limiting the number of results. > > I saw the web result can be modified easily by adding: > > > > > customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET); > > > > But what I really need is just the image results. So I tried this: > > > > > customSearchControl.setResultSetSize(google.search.ImageSearch.SMALL_RESULTSET); > > > > but it must have been the wrong syntax. > > > > Thank you for looking into this. :) > > > > On Dec 14, 11:49 am, Jeremy Geerdes <[email protected]> wrote: > >> It's tough to suggest what to do without knowing a little more about > what you're doing. Could you provide a link to your app? > >> > >> Jeremy R. Geerdes > >> Generally Cool Guy > >> Des Moines, IA > >> > >> For more information or a project quote: > >> [email protected] > >> > >> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan > Church! > >> > >> On Dec 14, 2011, at 8:56 AM, Insun He wrote: > >> > >> > >> > >> > >> > >> > >> > >>> Hi, > >>> Does anyone know how to setResultSetSize for image result? > >>> I have this code working but not on the image results. > >> > >>> > customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET); > >> > >>> Is it possible to set limit on the image result? > >> > >>> I'd appreciate it very much. > >> > >>> -- > >>> You received this message because you are subscribed to the Google > >>> Groups "Google AJAX APIs" group. > >>> To post to this group, send email to > >>> [email protected] > >>> To unsubscribe from this group, send email to > >>> [email protected] > >>> To view this message on the web, visit > >>> http://groups.google.com/group/google-ajax-search-api?hl=en_US > >>> For more options, visit this group at > >>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Google AJAX APIs" group. > > To post to this group, send email to > > [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > To view this message on the web, visit > > http://groups.google.com/group/google-ajax-search-api?hl=en_US > > For more options, visit this group at > > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > To view this message on the web, visit > http://groups.google.com/group/google-ajax-search-api?hl=en_US > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] To view this message on the web, visit http://groups.google.com/group/google-ajax-search-api?hl=en_US For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
