I do not believe that the filter argument is supported by the AJAX  
Search API.  You might request it in the issue tracker.

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 25, 2009, at 10:40 PM, macrojd wrote:

>
> Hi. Im using a php script with Json. I want to restrict the search to
> 1 domain so I do this:
>
> http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=off&q=allintitle:anya%20marina%20site:www.myspace.com&rsz=large&hl=en&start=0
>
> I receive 2 results:
>
> 1 - http://www.myspace.com/anyamarina
> 2 - http://www.myspace.com/index.cfm%3Ffuseaction%3Duser.viewProfile
>
> These results are the same if on google.com I do this search:
> "allintitle:anya marina site:www.myspace.com"
>
> But there are more useful links that I get when I add the parameter
> &filter=0 in the search url. When I do that the results on google.com
> will be:
>
> 1 - http://www.myspace.com/anyamarina
> 2 - http://www.myspace.com/index.cfm%3Ffuseaction%3Duser.viewProfile
> 3 - http://www.myspace.com/anyamarina123
> 4 - http://www.myspace.com/bathwithasociopath
> 5 - http://www.myspace.com/bathwithasociopath
>
> As you can see, all the links are relevant (and different), but in
> order to get all of them I have to add the parameter &filter=0 on
> google.com search.
>
> My question is: How can I do that on PHP Json query? I mean, what I
> have to add on this URL in order to get the same result?:
>
> http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=off&q=allintitle:anya%20marina%20site:www.myspace.com&rsz=large&hl=en&start=0
>
> I tried the parameter safe=off but didn't work. I tried as_sitesearch
> but is only for images I think. So I don't know what to do. In fact,
> this is a search engine fail, cause it is hidden important results.
>
> Thanks
> JD
>
>
>
>
> >


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