开发者

setSiteRestriction not working on a specific website

On my search I want开发者_如何学Go to filter results to my website, I tried the following:

webSearch.setSiteRestriction("orkutmanager.net");

But it doesn't work... If I set it to amazon.com

webSearch.setSiteRestriction("amazon.com");

It works.

Searching on Google's main page it works normally, e.g. orkut site:orkutmanager.net

Is it a bug? Is there a workaround?


I've created a custom search and added the id instead of the url

webSearch.setSiteRestriction("017220008487069298117:xgy2xbuc2io");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜