Laravel +Sphinx全文搜索是用 SphinxQL 还是 SphinxAPI

有一个很疑问的地方,如果在PHP的程序,比如laravel做的网站里面加入Sphinx搜索,是使用 SphinxQL 还是SphinxAPI ?

Applications can access Sphinx search daemon (searchd) using any of the three different access methods: a) via Sphinx own implementation of MySQL network protocol (using a small SQL subset called SphinxQL, this is recommended way), b) via native search API (SphinxAPI) or c) via MySQL server with a pluggable storage engine (SphinxSE). 

官方说明 using a small SQL subset called SphinxQL, this is recommended way
现在能找到的资料都是SphinxAPI来结合PHP,是否有SphinxQL + PHP 这样的结合例子。

阅读 3.6k
1 个回答
As of 2015, we strongly recommend to use either SphinxQL or REST APIs
rather than the native SphinxAPI.

sphinx-3.1.1 中sphinxapi.php文件的注释
SphinxQL可以参考
https://github.com/FoolCode/S...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题