Sphinx for Laravel Scout
Sphinx Search Engine for Laravel Scout.
Forked from https://github.com/hocnt84/laravel-scout-sphinx
Note: Pagination did not work with the original repo. Maybe it's due a Query Builder issue. This is the only reason we've created this fork., (*1)
Prerequisites
You should have Sphinx service installed, see: http://sphinxsearch.com/, (*2)
Install
Installing via composer
Use composer require
to install the Engine., (*3)
$ composer require egwk/laravel-scout-sphinx
Configuration
Update config/scout.php
, and add an entry for sphinx
:, (*4)
//
'sphinx' => [
'host' => env('SCOUT_HOST', 'localhost'),
'port' => env('SCOUT_PORT', '9306'),
],
//
Set SCOUT_*
variables in your .env
file:, (*5)
SCOUT_DRIVER=sphinxsearch
SCOUT_PREFIX=myprefix_
SCOUT_HOST=localhost
SCOUT_PORT=9306
Adding to your project
Update config/app.php
by adding an entry for the service provider:, (*6)
'providers' => [
// ...
Egwk\LaravelScoutSphinx\Provider\SphinxEngineProvider::class,
];
See Laravel Scout Docs for further info., (*7)
Authors