arunfung/scout-elasticsearch
Composer 安装命令:
composer require arunfung/scout-elasticsearch
包简介
Laravel Scout ElasticSearch Driver
README 文档
README
scout-elastic-search
Introduction
Currently, laravel Scout only supports Algolia driver, This package is ElasticSearch driver for laravel Scout.
Installation
Install the package via composer:
composer require arunfung/scout-elasticsearch
If you are using Laravel version < 5.5 or the package discovery is disabled, Must add the Scout service provider and the package service provider in your app.php
/* * Package Service Providers... */ Laravel\Scout\ScoutServiceProvider::class, ArunFung\ScoutElasticSearch\ElasticSearchServiceProvider::class,
Configuration
- Publish settings
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider" php artisan vendor:publish --provider="ArunFung\ScoutElasticSearch\ElasticSearchServiceProvider"
- Set scout driver in
.env
// Set scout driver to elasticsearch SCOUT_DRIVER=elasticsearch
- Create a new ElasticSearch index
If you need to set the mapping, you can set it in config/elasticsearch.php
// add index name into .env ELASTIC_SEARCH_INDEX=index name // Create a generic index mapping php artisan es:create-index
Usage
Documentation for Scout can be found on the Laravel website.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-07