Class 'Yab\MySQLScout\Engines\Modes\' not found
DylanDec opened this issue · 1 comments
DylanDec commented
$this->app->singleton(ModeContainer::class, function ($app) { $engineNamespace = 'Yab\\MySQLScout\\Engines\\Modes\\'; $mode = $engineNamespace.Str::studly(strtolower(config('scout.mysql.mode'))); $fallbackMode = $engineNamespace.Str::studly(strtolower(config('scout.mysql.min_fulltext_search_fallback'))); return new ModeContainer(new $mode(), new $fallbackMode()); }); }}
robfrancken commented
You need to add the following to config/scout.php as mentioned under installation:
'mysql' => [
'mode' => 'NATURAL_LANGUAGE',
'model_directories' => [app_path()],
'min_search_length' => 0,
'min_fulltext_search_length' => 4,
'min_fulltext_search_fallback' => 'LIKE',
'query_expansion' => false
]