siteSearch.setSiteRestriction question

23 views
Skip to first unread message

Testujemy

unread,
Nov 23, 2009, 12:06:26 PM11/23/09
to Google AJAX APIs
Welcome.

I want use bot sites in siteSearch.setSiteRestriction search metod.
Example code: var siteSearch = new GwebSearchgoogle.search.WebSearch
();
siteSearch.setSiteRestriction("amazon.com");
So, I want not only Amazon.com, but also Ebay.com in
setSiteRestriction.

Thanks.

Jeremy Geerdes

unread,
Nov 23, 2009, 12:53:23 PM11/23/09
to google-ajax...@googlegroups.com
Unfortunately, the setSiteRestriction method does not really support
multiple sites. As a viable workaround, though, you can set up your
own Custom Search Engine to search Amazon and Ebay and then direct
your AJAX Search application to utilize your CSE.

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
!
> --
>
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com
> .
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=
> .
>
>

Reply all
Reply to author
Forward
0 new messages