guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

google topic NewsSearch with es_us edition #473

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.

// Create a news search control
searchControl = new google.search.SearchControl();
newsSearch = new google.search.NewsSearch();
searchControl.addSearcher(newsSearch);

//Set options for a SPORTS topic search with estados unidos edition
newsSearch.setRestriction(google.search.Search.RESTRICT_EXTENDED_ARGS,
                {"ned" : "es_us","topic" : "s"});

//LATER execute the search
searchControl.execute("topic search");

What is the expected output? What do you see instead?
One would expect a result set of Spanish articles, however the returned set of 
articles is English articles. Note that the estados unidos topic search DOES 
return spanish articles for 'World news', that is a "topic" argument of "w". 
However it DOES NOT work for any other topic argument values.

Please provide any additional information below.
Also note that if the query text is empty when executing a topic search, NO 
results are returned. Hence the line of code

searchControl.execute("topic search");

Original issue reported on code.google.com by mrwwalms...@gmail.com on 24 Jun 2010 at 11:13

GoogleCodeExporter commented 8 years ago

Original comment by jscud.w...@gmail.com on 14 Jul 2010 at 12:49