如何更改 YQL search.spelling/search.suggestion 查询中的语言/区域?
我正在尝试使用 YQL 的拼写和搜索建议,但尽我所能,我找不到更改查询语言/区域的方法,这是如何完成的?我想查找西班牙语/墨西哥语的拼写/建议 ("es-MX"
)
我对英语查询得到的结果非常满意,但在西班牙语查找时我没有得到任何结果:
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>
我已经四处寻找将 yahoo:lang="en-US"
更改为 yahoo:lang="es-MX"
的方法,但我找不到 andy 文档关于它。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知你不能。 YQL 仅返回英文结果
http://developer.yahoo.com/yql/guide/yql-l18n.html
As far I know you can't. The YQL returns results only in English
http://developer.yahoo.com/yql/guide/yql-l18n.html