定制 semihyilmaz/laravel-scout-solr 二次开发

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

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

semihyilmaz/laravel-scout-solr

最新稳定版本:v1.0.1

Composer 安装命令:

composer require semihyilmaz/laravel-scout-solr

包简介

Solr Driver for Laravel Scout

README 文档

README

Solr driver for Laravel Scout. (Updated for Laravel 10)

Documentation

Not ready yet.

Problems, questions or comments?

If you have any problems, questions or comments, feel free to submit an issue and I will reply to you as soon as possible.

Prerequisites

Install [Laravel Scout](https://laravel.com/docs/10.x/scout.

Install

Install via Composer

$ composer require semihyilmaz/laravel-scout-solr

Set your SCOUT_DRIVER to solr:

// .env

...

SCOUT_DRIVER=solr

You must add the Scout service provider and the Solr engine service provider in your app.php config:

// config/app.php

'providers' => [
    ...
        /*
         * Package Service Providers...
         */
        Laravel\Scout\ScoutServiceProvider::class,
        ScoutEngines\Solr\SolrProvider::class,
],

Add the Solr configuration to the scout config file:

// config/scout.php

...

    /*
    |--------------------------------------------------------------------------
    | Solr Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure your Solr settings. Solr is the popular, blazing
    | -fast, open source enterprise search platform built on Apache Lucene.
    | If necessary, you can override the configuration in your .env file.
    |
    */

    'solr' => [
        'host' => env('SOLR_HOST', '127.0.0.1'),
        'port' => env('SOLR_PORT', '8983'),
        'path' => env('SOLR_PATH', '/solr/'),
        'core' => env('SOLR_CORE', 'scout'),
    ],

Usage

Now you can use Laravel Scout as described in the official documentation

Solr Installation

See the Solr Install On Centos-Rocky-Alma Linux for more information.

Security

If you discover any security related issues, please send me email instead of using the issue tracker.

Credits

  • [Semih YILMAZ][link-author]
  • [Jeroen Herczeg]
  • solariumphp/solarium
  • [All Contributors][link-contributors]

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-21