Hi,
What is the proper way to access the default searcher, created by
google.search.CustomSearchControl, so I can add a restriction to the
search results?
Through inspection, I have found that the following method works as
intended:
var cse = new google.search.CustomSearchControl(api_code);
cse.hb.setRestriction(google.search.Search.RESTRICT_EXTENDED_ARGS,
{ lr: 'lang_' + lang });
However, I suspect that using a variable name like "hb" is not the
proper way, and the name is subject to change when a new version of
the search control comes out.
--
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.