Open GoogleCodeExporter opened 9 years ago
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=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F2ZWRDb2RlGK
KnpwEM
Original comment by lisba...@google.com
on 2 Jun 2009 at 5:09
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
Original comment by jeremy.solarz@gmail.com
on 3 Jun 2009 at 4:51
Add &lr=lang_de to the end of your RESTful url. That's essentially what the
setRestriction method does in this case.
Original comment by jrgeer...@gmail.com
on 3 Jun 2009 at 7:22
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
Original comment by jeremy.solarz@gmail.com
on 4 Jun 2009 at 7:28
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.
Original comment by jrgeer...@gmail.com
on 4 Jun 2009 at 8:07
Thats exactly the point!
Original comment by jeremy.solarz@gmail.com
on 4 Jun 2009 at 8:38
Original issue reported on code.google.com by
jeremy.solarz@gmail.com
on 26 May 2009 at 2:18