SphinxQL RT索引错误

时间:2012-07-24 08:31:26

标签: sphinx

我尝试过使用Sphinx QL源代码的示例。但我得到“没有数据库选择”错误。谁能分享样本示例?这对我来说非常有用..

Sphinx QL包装类已从以下路径下载:  http://code.google.com/p/sphinxapi/source/browse/trunk/class.sphinxql.php?r=2

使用以下步骤:

$option['host'] = 'localhost';
$classApi = new SphinxQL($option);
$value = $classApi->exec(" select count(DISTINCT ID) from tablename where fanme=2769457");
  

错误:未选择数据库

1 个答案:

答案 0 :(得分:0)

如狮身人面像论坛所述 http://sphinxsearch.com/forum/view.html?id=9864

看起来您找到的代码中存在一些错误。