This is happening because, when you add the searcher to the control, the result set size you set for the searcher is being overridden by the default result set size on the SearchControl. To fix the problem, create all your searchers without calling their individual setResultSetSize methods, add them all to the control, and then call the control's setResultSetSize method.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Sep 13, 2010, at 7:03 AM, keyurvaghani wrote: > Hello Friends, > > currently i am implementing google search widget using Google Ajax > Search API and i want to show each result in tabular format with > different categories like "News", "Images" and "Videos"...etc. > > But it will return me only 8 pages with only 4 result set. > > My Question is: > > How can i increase these result set records ...? > > > here is my script as below: > > //<![CDATA[ > google.load('search', '1.0'); > > function OnLoad() { > newsSearch=new google.search.NewsSearch(); > newsSearch.setResultSetSize(google.search.Search.LARGE_RESULTSET); > tabbed.addSearcher(newsSearch); > imageSearch=new google.search.ImageSearch(); > imageSearch.setResultSetSize(google.search.Search.LARGE_RESULTSET); > tabbed.addSearcher(imageSearch); > videoSearch=new google.search.VideoSearch(); > videoSearch.setResultSetSize(google.search.Search.LARGE_RESULTSET); > tabbed.addSearcher(videoSearch); > > > // draw in tabbed layout mode > drawOptions = new google.search.DrawOptions(); > > drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED); > tabbed.draw(document.getElementById("search_control_tabbed"), > drawOptions); > tabbed.execute("test"); > > } > > google.setOnLoadCallback(OnLoad, true); > > //]]> > > -- > 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. > -- 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.
