Elasticsearch Driver for Laravel Scout with multi-index support.
sl0wik/laravel-scout-elasticsearch-driver is a Laravel package for elasticsearch driver for laravel scout with multi-index support..
It currently has 5 GitHub stars and 7.279 downloads on Packagist (latest version 3.0.11).
Install it with composer require sl0wik/laravel-scout-elasticsearch-driver.
Discover more Laravel packages by sl0wik
or browse all Laravel packages to compare alternatives.
Last updated
This is the Elasticsearch driver for Laravel Scout with multiple indexes support.
Package is based on tamayo/laravel-scout-elastic, and created to replace depeceated types, with Index per document type solution.
composer require sl0wik/laravel-scout-elasticsearch-driver
Add the Scout service provider and the package service provider in your app.php config:
// config/app.php
'providers' => [
...
Laravel\Scout\ScoutServiceProvider::class,
...
ScoutEngines\Elasticsearch\ElasticsearchProvider::class,
],
After you've published the Laravel Scout package configuration update config/scout.php:
'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
...
'elasticsearch' => [
'hosts' => [
env('ELASTICSEARCH_HOST', 'http://localhost'),
],
],
...
If you are migrating from ErickTamayo/laravel-scout-elastic, keep in mind that instead of config('scout.elasticsearch.index') this package is using searchableAs() method to get index name. By default it will return model config('scout.prefix').$this->getTable();. Your new data will be stored under different indexes so you will need to reindex everything.
Now you can use Laravel Scout as described in the official documentation
The MIT License (MIT).