To show all 8 results, you need to do two things to your default
search control:
1. call
searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
at some point after it is initialized but before it is executed.
2. Create a SearcherOptions object, set its expansion mode to open,
and pass that to the searchControl's addSearcher method.
For example:
function init(){
var searchControl=new google.search.SearchControl;
searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
var searcherOptions=new google.search.SearcherOptions();
searcherOptions
.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
var ws=new google.search.WebSearch;
searchControl.addSearcher(ws, searcherOptions);
searchControl.execute('bmw');
}
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com
Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.
If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!
And check out my blog, Adventures in Web Development, at
http://jgeerdes.blogspot.com
!