Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Class 'Yab\MySQLScout\Engines\Modes\' not found #109

Open
DylanDec opened this issue Aug 6, 2020 · 1 comment
Open

Class 'Yab\MySQLScout\Engines\Modes\' not found #109

DylanDec opened this issue Aug 6, 2020 · 1 comment

Comments

@DylanDec
Copy link

DylanDec commented Aug 6, 2020

        $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
Copy link

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
    ]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants