How to change language/region in a YQL search.spelling/search.suggestion query?

Posted by Francisco Noriega on Stack Overflow See other posts from Stack Overflow or by Francisco Noriega
Published on 2010-11-22T17:45:36Z Indexed on 2010/12/24 16:54 UTC
Read the original article Hit count: 168

Filed under:
|
|
|
|

Hello, I'm trying to use YQL's spelling and search suggestions, but as much as I try I cant find a way to change the language/region for the query, how is this done? I want to look for spelling/suggestions in spanish/mexico ("es-MX")

I'm pretty happy with the results I get for queries in English, but when looking in Spanish I get no results:

select * from search.suggest where query="dolor de cabeza"

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng"
    yahoo:count="0" yahoo:created="2010-11-22T17:41:13Z" yahoo:lang="en-US">
    <results/>
</query>

I've looked around for a way to change yahoo:lang="en-US" to yahoo:lang="es-MX" but I cant find andy documentation about it.

Thanks!

© Stack Overflow or respective owner

Related posts about web-development

Related posts about api