过去我使用以下内容查找数据库中的所有最新视频, 然而,在转移到我的新服务器后,它似乎不再起作用。我试过玩 使用sphinx.conf中的设置但无济于事。我需要搜索空条件以查找各种内容,例如最新视频,总视频数量等。希望有人可以提供帮助!
$client = new SphinxClient();
// Set search options
$client->SetServer('localhost', 9312);
$client->SetConnectTimeout(1);
$client->SetArrayResult(true);
$client->SetLimits($offset, $VIDEOS_PER_PAGE, $offset+$VIDEOS_PER_PAGE);
$client->SetSortMode(SPH_SORT_ATTR_DESC,"date");
// Query the index
$results = $client->query('',"test1");
答案 0 :(得分:0)
检查配置中的enable_star是否设置为1
http://sphinxsearch.com/docs/archives/1.10/conf-enable-star.html