定制 arunfung/scout-elasticsearch 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arunfung/scout-elasticsearch

Composer 安装命令:

composer require arunfung/scout-elasticsearch

包简介

Laravel Scout ElasticSearch Driver

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage Total Downloads Latest Stable Version License

scout-elastic-search

English | 中文

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

GitHub 信息

  • Stars: 8
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固