sngrl / sphinxsearch

Sphinx Search for Laravel 5
MIT License
124 stars 89 forks source link

How can i use jointure #9

Open zimbar opened 8 years ago

zimbar commented 8 years ago

Hello,

I need to some thinks like:

$sphinx->search($search, 'inews')->with('type','category')->get() but the whith jointure dont work.

How can i do that Thanks

sngrl commented 8 years ago

You need to change your configuration file (sphinxsearch.php), for example:

return array (
    'host'    => '127.0.0.1',
    'port'    => 9312,
    'indexes' => array (
        'my_index_name' => array('table' => 'news', 'column' => 'id', 'modelname' => 'News'),
    )
);