承接 bethinkpl/elastic-scout 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bethinkpl/elastic-scout

最新稳定版本:8.1.0

Composer 安装命令:

composer require bethinkpl/elastic-scout

包简介

Elastic Driver for Laravel Scout

README 文档

README

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

Laravel Scout Elasticsearch Driver

Latest Stable Version Total Downloads License

Archived

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.

Contents

Installation

You can install the package via composer:

composer require bethinkpl/elastic-scout

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).

统计信息

  • 总下载量: 30.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-01-02