人们选择使用 SphinxAPI 而不是 SphinxQL 的具体原因有哪些?

发布于 2024-11-15 02:27:01 字数 194 浏览 7 评论 0原文

是否有一些能力是一个人天生缺乏而另一个人却没有的?

对于解释型语言,SphinxQL(根据 Sphinx 博客上的基准测试)返回查询的速度比 SphinxAPI 更快,并且这种比较的前提可能是两者中存在的功能相同。

那为什么要用API呢?

非常感谢对这个问题的任何澄清。

(这是关于基于C++的开源搜索引擎)

Are there any capabilities that one inherently lacks that the other doesn't?

SphinxQL (according to benchmarks on the Sphinx blog) returns queries faster than SphinxAPI for interpreted languages and the premise of such a comparison would likely be that the functionalities present in both are the same.

Why the API then?

Any clarity on this issue is much appreciated.

(This is about the C++ based open source search engine)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

终难遇 2024-11-22 02:27:01

我刚刚找到了一个令人满意的答案:

SphinxQL 只是一种用于查询 Sphinx 的语言

SphinxAPI 是一个允许您根据查询计算结果的框架。

查询仍然可以通过 SphinxQL 进行,也可以通过 API 的语法进行...这并不重要...SphinxQL 和 SphinxAPI 是完成不同事情的不同对象(如上面突出显示的)

I just found a satisfactory answer:

SphinxQL is simply a language for querying Sphinx.

SphinxAPI is a framework that allows you to compute results based on the queries.

The queries could still be via SphinxQL or they could be via the API's syntax...it doesn't matter...SphinxQL and the SphinxAPI are different objects that accomplish different things (as highlighted above)

暗地喜欢 2024-11-22 02:27:01

SphinxAPI 是一个遗产。这就是为什么我宁愿使用 API 流程,也不愿在生产中切换到 SphinxQL。但对于新项目,SphinxQL 是唯一的选择,因为它发展得更快,并且首先获得所有功能。下一件大事是,使用 SphinxQL,您无需与非官方支持的语言或平台的 API 开发人员联系,而是可以使用任何 MySQL 客户端 \ 库。

SphinxAPI is a legacy. That is why I'd rather go with a flow with a API than switch to SphinxQL in production. But for new projects SphinxQL is the only choice as it is evolve quicker and gets all features first. The next big thing that using SphinxQL you don't tie to developer of API for not officially supported languages or platform instead you could use any MySQL client \ library.

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