My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 252: the parameter ned=... (e.g. de_at) is not working in news search in conjunction with scoring parameter
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
APIType-Search


Sign in to add a comment
 
Reported by jeremy.solarz, May 26, 2009
What steps will reproduce the problem?
1. I search for news with the search API somehow like that
http://ajax.googleapis.com/ajax/services/search/news?q=arnold+schwarzenegger&start=0&api_key=<API_KEY>&v=1.0&hl=de&scoring=d&ned=de_at
2. The result shows only results in english as well as in german
3. It should show results ONLY in german

What is the expected output? What do you see instead?
The expected output are news in german.
Instead i see news in english + german

What version of the product are you using? On what operating system?
Version 1.0, Server is a Debian Distr.


Please provide any additional information below.
With the use of the parameter ned=...
it should be possible to restrict the search result to a specific language.
Which isn't the case. As far as I have proven the disfunctionallity so far
it is in conjunction with use of the scoring=d parameter.
hl=de doesn't change the output

Regards Jeremy S.

Comment 1 by lisba...@google.com, Jun 02, 2009
Jeremy --

Try using this:
searcher.setRestriction(google.search.Search.RESTRICT_EXTENDED_ARGS, {"lr":"lang_de"}); 

Take a look at this sample:
http://savedbythegoog.appspot.com/?id=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F2ZWRDb2RlGKKnpwEM

Status: Invalid
Comment 2 by jeremy.solarz, Jun 03, 2009
Thank you for your posting, but i don't understand how this would be a solution
for my problem. I'm using a REST call (driven by AJAX) to access the search results
and it is not possible to switch to Javascript AJAX calls. 
You can try my search when you copy pase the url given in your browser window.
The results displayed will be german and english content mixed.

Any further suggestions.

Regards Jeremy


Comment 3 by jrgeerdes, Jun 03, 2009
Add &lr=lang_de to the end of your RESTful url. That's essentially what the
setRestriction method does in this case.
Comment 4 by jeremy.solarz, Jun 04, 2009
Hi jrgeerdes,

I have done that with the URL + &lr=lang_de given and still getting weired results
(results are in english too) 
have you tried it with the URL i've used in my post?

Greetings Jeremy
Comment 5 by jrgeerdes, Jun 04, 2009
After some testing, I have found that omitting the scoring parameter returns results
in German, but if you include the scoring parameter, the results are in English,
regardless of the hl and lr parameters specified. Please confirm that you see this
behavior too.
Status: New
Labels: APIType-Search
Comment 6 by jeremy.solarz, Jun 04, 2009
Thats exactly the point!

Sign in to add a comment

Hosted by Google Code