S
S
SwoDs2016-05-25 10:36:51
Sphinx
SwoDs, 2016-05-25 10:36:51

Why is query not working in Sphinx Yii2?

The decision was in my carelessness, sorry to disturb. Advice: get enough sleep
Hello everyone, I installed Sphinx, everything works, it gives the result through the console - joxi.ru/823bGEDI6YRv1m
But if I make a request from Yii2, then I get NULL
Request:

$query = new QuerySpx();
        $rows = $query
            ->from('testDoc2Index')
            ->all();

        \yii\helpers\VarDumper::dump($rows, 10, true);

Settings:
'sphinx' => [
            'class' => 'yii\sphinx\Connection',
            'dsn' => 'mysql:host=127.0.0.1;port=9306;',
            'username' => 'root',
            'password' => '',
        ],

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2016-05-25
@SwoDs

You dump $row and save the result to $rows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question