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.

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

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改