SearchOptions.CRestrict

Dec 9, 2008 at 7:37 PM
Hey,

I am not a US citizen and I prefer to restrict search to my own country ( belgium that is ).

I downloaded the source code and added a CRestrict parameter to the SearchOptions class (line 322)

/// <summary>
/// Valid values: http://www.google.com/coop/docs/cse/resultsxml.html#languageCollections
/// </summary>
public string CRestrict
{
     set { this.SetOption("cr", value); }
}


It works nicely so I would like to ask you if you can add it to your code. That way I can stay in sink with your new releases and still have my country restrict options :)

Nice project by the way, works like a charm

Regards
Bart

 

Dec 9, 2008 at 9:26 PM
Seems I was wrong about the 'working nicely'. I tested some and did some googleing on the option and it's not working yet.

Soory about that

regards
Bart