PHP使用Sphinx API对Mysql数据进行全文检索
//使用sphinx进行全文检索
function search_by_sphinx($keywords,$offset,$limit) {
include_once app_path() . '/mylibs/sphinxapi.php';
$client = new \SphinxClient();
$host = "127.0.0.1";
$port = 9312;
$client->SetServer ( $host, $port );
$client->SetConnec.
原创
2020-09-24 20:27:13 ·
136 阅读 ·
0 评论