Actually, using .setSiteRestriction in the jsapi essentially tells the  
JS to add " site:YOUR_SITE_RESTRICTION" to the end of your query.  So  
it really is just as though you're calling q=MY_QUERY site:MY_SITE&...

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
[email protected]

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 
  !


On Feb 26, 2009, at 10:30 AM, macrojd wrote:

>
>
> Hi Jeremy. Well, I found 2 things. One is that the filter parameter
> was in the old version of the API, but I can't find it on this version
> (Ajax API). And the other thing is that I'm filtering the domain on
> the query parameter (q=site:www.domain.com) but I need to do it on the
> url. But I don't know how to do this on PHP:
>
> siteSearch.setSiteRestriction("amazon.com");
>
> this is what you do on Ajax scripts, but I don't know what parameter I
> need to filter the domain at the same way on PHP url.
>
> Anybody?
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to