S
S
Sergei2015-11-16 22:22:39
Sphinx
Sergei, 2015-11-16 22:22:39

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));

But suddenly an error like
access denied [email protected] password NO

I explicitly specified the user and password inside either at the call site
mysqli::real_connect()
passing the host, username, etc. parameters there.
connected to the database
Now when executing the query:
$query = SphinxQL::create($conn)->select('column_one', 'colume_two')
    ->from('forum_index');
$result = $query->execute();

and the answer is an error
table forum_index doesn't exist

Tell me in which direction you can dig? It feels like it's just that Liba does not use the sphinx config

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-11-17
@Neversmille

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 question

Ask a Question

731 491 924 answers to any question