Answer the question
In order to leave comments, you need to log in
How to explicitly specify sphinxsearch config for sphinxQL?
Good afternoon.
Installed sphinxsearch -> configured config -> created forum_index index via indexer --all
Posts were indexed, all without errors.
Connected in the SphinxQL project. I set the parameters and make a request according to the example in the ReadMe either:
// create a SphinxQL Connection object to use with SphinxQL
$conn = new Connection();
$conn->setParams(array('host' => 'localhost', 'port' => 9306));
access denied [email protected] password NO
mysqli::real_connect()passing the host, username, etc. parameters there.
$query = SphinxQL::create($conn)->select('column_one', 'colume_two')
->from('forum_index');
$result = $query->execute();
table forum_index doesn't exist
Answer the question
In order to leave comments, you need to log in
Firstly, your lib should not read your sphinx configuration at all, where did you suddenly get it from, your connections go instead of the sphinx to the muscle.
In general, you can connect to sftnx with a regular muscle client
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question