I found my answer here

http://groups.google.com/group/google-ajax-search-api/browse_thread/thread/c0aeec12341b7e2/25526b2843810aca?lnk=gst&q=LARGE_RESULTSET#25526b2843810aca



On Apr 19, 2:35 pm, "~G" <[email protected]> wrote:
> I am trying to get my search results to display more then one result.
> (says "search mysite name"  and a menu with 3 images next to it...
> show one result, show more results, show all results)  I set this
> property however it still falls under the one result ?
>
> siteSearch.setResultSetSize(GwebSearch.LARGE_RESULTSET);
>
> can you tell me if i am not seting the correct property ?
>
> //Full code
>  function onLoad() {
>             // Create a custom search control that uses a CSE
> restricted to
>             // code.google.com
>
>             // Create a search control
>             var searchControl = new GSearchControl();
>
>             // site restricted web search with custom label
>             siteSearch = new GwebSearch();
>             siteSearch.setLinkTarget(GwebSearch.LINK_TARGET_SELF);
>             siteSearch.setUserDefinedLabel("Search SBSB");
>             siteSearch.setResultSetSize(GwebSearch.LARGE_RESULTSET);
>             siteSearch.setUserDefinedClassSuffix("siteSearch");
>             siteSearch.setSiteRestriction("sbsb.com");
>
>             searchControl.addSearcher(siteSearch);
>
>             // Set drawing options to use our hidden input box.
>             var drawOptions = new google.search.DrawOptions();
>             drawOptions.setInput(document.getElementById('hidden-
> input'));
>
>              // Draw the control in content div
>             //searchControl.draw('results');
>             searchControl.draw('results', drawOptions);
>
>             // Run a query
>             searchControl.execute(getQuery());
>         }
>
> --
> 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].
> For more options, visit this group 
> athttp://groups.google.com/group/google-ajax-search-api?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].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to