如何更改 YQL search.spelling/search.suggestion 查询中的语言/区域?

发布于 2024-10-04 07:50:55 字数 572 浏览 0 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁的年少不轻狂 2024-10-11 07:50:55

据我所知你不能。 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文