bethinkpl/elastic-scout is a Laravel package for elastic driver for laravel scout.
It currently has 0 GitHub stars and 32.955 downloads on Packagist (latest version 9.0.0).
Install it with composer require bethinkpl/elastic-scout.
Discover more Laravel packages by bethinkpl
or browse all Laravel packages to compare alternatives.
Last updated
This is a fork of https://github.com/ErickTamayo/laravel-scout-elastic with a few changes:
https://github.com/ErickTamayo/laravel-scout-elastic/compare/master...bethinkpl:master
I haven't had the time to dedicate work to this repo and I don't plan to do so in the future.
This package provides a Elasticsearch driver for Laravel Scout.
You can install the package via composer:
composer require bethinkpl/elastic-scout
Laravel will automatically register the driver service provider.
For use this library we recomend using the latest version at this time (^7.9)
composer require elasticsearch/elasticsearch
After you've published the Laravel Scout package configuration, you need to set your driver to elasticsearch and add its configuration:
// config/scout.php
...
// Set your driver to elasticsearch
'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
...
/*
|--------------------------------------------------------------------------
| Elasticsearch Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your Elasticsearch settings.
|
*/
'elasticsearch' => [
'hosts' => [
env('ELASTICSEARCH_HOST', 'localhost'),
// [
// 'host' => env('ELASTICSEARCH_HOST', 'localhost'),
// 'port' => env('ELASTICSEARCH_PORT', '9200'),
// 'scheme' => env('ELASTICSEARCH_SCHEME', 'https'),
// 'path' => env('ELASTICSEARCH_PATH', '/elastic'),
// 'user' => env('ELASTICSEARCH_USER', 'username'),
// 'pass' => env('ELASTICSEARCH_PASS', 'password'),
// ]
],
]
...
For host configuration you can refer to the official Elasticsearch documentation
Now you can use Laravel Scout as described in the Laravel Scout official documentation
Identifying Users Currrently user identification is not supported.
The MIT License (MIT).