• 3.2k

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 这样的结合例子。

阅读 1.4k
评论
    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...

      撰写回答

      登录后参与交流、获取后续更新提醒

      相似问题
      推荐文章