Good question. I don't see it in the official documentation, but it sounds like 
something that probably won't change. That is, until the control itself is 
discontinued. Unfortunately, the CustomSearchControl you're trying to use is 
dependent on Google's Web Search API, which has been deprecated. You can still 
use the CustomSearchControl for now, but Google has removed the official 
documentation from their site (I found an archived version on another site) and 
is directing people to use the Custom Search Web Element, which is essentially 
the same thing but within an iframe so that, when they change the code, it will 
continue to work. The downside of the Web Element is that it is not nearly as 
customizable as doing it with your own JS.

All this to say: I would not hesitate to use the getWebSearcher() method in 
your script. I WOULD, however, hesitate to use the CustomSearchControl if at 
all possible.

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 Aug 17, 2011, at 6:28 PM, yotam wrote:

> When using custom search control by say:
> 
>    var my_cse_id = '012345678909876543210:qwertytrewq';
>    var my_cse = new google.search.CustomSearchControl(my_cse_id);
> 
> if in addition one wants to programmatically get results of a user query,
> using the 
>    setSearchCompleteCallback(...)
> method, then one needs to get the searcher handle.
> By peeking at the properties of my_cse, I found that it is possible
> to successfully use:
>    var my_searcher = my_cse.getWebSearcher();
> But I could not find whether this
>    getWebSearcher()
> is documented, or even actually a part of an official API.
> Is it?
> 
> 
> -- 
> 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
> https://groups.google.com/d/msg/google-ajax-search-api/-/GAy-zMjs8KoJ
> 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

Reply via email to