I'm attempting to use Sphinx for the first time in awhile.
require('includes/lib/sphinxapi.php'); // Sphinx Search API
$cl = new SphinxClient();
$cl->SetServer($config['SphinxServer']);
$cl->SetSortMode(SPH_SORT_RELEVANCE);
$cl->SetMatchMode(SPH_MATCH_ANY);
$articles = $cl->Query('Foo', 'articles delta');
If I then do var_dump($articles);
it just always returns bool(false)
. What am I doing wrong?
If, from the CLI on the web server, I do mysql -h <server_name> -P 9306
then it successfully connects and returns queries against 'Foo'.