laravel-scout-elasticElastic Driver for Laravel Scout
Laravel Scout Elasticsearch Driver
This package provides a Elasticsearch driver for Laravel Scout.
Contents
Installation
You can install the package via composer:
composer require tamayo/laravel-scout-elastic
Laravel will automatically register the driver service provider.
Install elasticsearch-php client
For use this library we recomend using the latest version at this time (^7.9)
composer require elasticsearch/elasticsearch
Setting up Elasticsearch configuration
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
Usage
Now you can use Laravel Scout as described in the Laravel Scout official documentation
Limitations
Identifying Users Currrently user identification is not supported.
Credits
License
The MIT License (MIT).
评论
scout
scoutisaRESTfulsearchserverwritteninPython.ThesearchispoweredbySQLite'sfull-textsearchextension,andt
scout
0
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
OracleDBdriverforLaravel4|5|6|7|8viaOCI8Laravel-OCI8Laravel-OCI8isanOracleDatabaseDriverpackageforLa
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
0
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
OracleDBdriverforLaravel4|5|6|7|8viaOCI8Laravel-OCI8Laravel-OCI8isanOracleDatabaseDriverpackageforLa
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
0
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
Oracle DB driver for Laravel 4|5|6|7|8 via OCI8Lar
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
0
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
Oracle DB driver for Laravel 4|5|6|7|8 via OCI8Lar
laravel-oci8Oracle DB driver for Laravel 4|5|6|7|8 via OCI8
0
Scaffold for laravel基于 Laravel 的后台脚手架
zgldh/Scaffold基于Laravel5.5,Vue2,ElementUI2,vueAdmin-template制作的后台脚手架。预制功能:用户,角色,权限体系文件上传通知系统完全脱离Cook
Scaffold for laravel基于 Laravel 的后台脚手架
0