I am using Laravel 5.3 and i was trying to use sngrl sphinx, following this git : http://ift.tt/2kMNQxQ.
I followed all the installation and configuration steps, but in the end when i try to use, i got always return null ( the answer is false).
This is the configuration:
<?php
return array(
'host' => '127.0.0.1',
'port' => 3306,
'timeout' => 30,
'indexes' => array(
'my_index_name' => array('table' => 'users', 'column' => 'email'),
),
'mysql_server' => array(
'host' => '127.0.0.1',
'port' => 3306
)
);
, And this is where i am trying to do the query :
public function teste(Request $request)
{
$sphinx = new SphinxSearch();
$results = $sphinx->search('daniel@gmail.com', 'users_index');
dd($results);
return back();
}
or something like this to select all
public function teste(Request $request)
{
$sphinx = new SphinxSearch();
$results = $sphinx->search('', 'users_index');
dd($results);
return back();
}
The result is this : http://ift.tt/2l0g7fi
I belive that i could be missing something but i don't know.
I searched about it, but i can't find mutch information about it, if anyone can help me plz.
António Gonçalves
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kMJJ4V
via IFTTT
Aucun commentaire:
Enregistrer un commentaire