dongzhao5834 2015-03-11 18:42
浏览 75
已采纳

Sphinx查询语言与API - 效率和生产中的使用

Sphinx search allows using API client or MYSQL Client.

API is implemented for many languages but when you download source you may see that comment (for example in php and python client)

//                          WARNING
// We strongly recommend you to use SphinxQL instead of the API

Does it mean that SphinxQL is more efficient?

Are there any contraindication against using API apart from it's design? In my opinion this API is really hard to understand for new developers and is more difficult to use than query language.

But are there any advantages of using SpinxQL instead of API?

  • 写回答

1条回答 默认 最新

  • douhuan6065 2015-03-11 19:32
    关注

    The main advantage is, can do more via SphinxQL than via the now outdated API. And its usable anywhere that has a mysql client driver - doesn't need a port of the API client to the specific language. (and the client doesnt need to be updated as you updarte sphinx)

    Things like updating Real-Time (RT) indexes is only available via SphinxQL. UDFs care only installable via QL. There are plenty of smaller things too (specific functions, and options like GROUP-N)

    There is a handful of things that are slightly more efficient via the API (eg bulk UpdateAttributes, and setOverride) - but even then are POSSIBLE via SphinxQL.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里