semihyilmaz/laravel-scout-solr

Solr Driver for Laravel Scout

v1.0.1 2023-03-21 18:18 UTC

This package is auto-updated.

Last update: 2024-04-21 21:33:27 UTC


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.