views:

11

answers:

1

On my search I want 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?

A: 

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

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