Solr driver for Laravel Scout. (Updated for Laravel 10)
Not ready yet.
If you have any problems, questions or comments, feel free to submit an issue and I will reply to you as soon as possible.
Install [Laravel Scout](https://laravel.com/docs/10.x/scout.
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'),
],
Now you can use Laravel Scout as described in the official documentation
See the Solr Install On Centos-Rocky-Alma Linux for more information.
If you discover any security related issues, please send me email instead of using the issue tracker.
- [Semih YILMAZ][link-author]
- [Jeroen Herczeg]
- solariumphp/solarium
- [All Contributors][link-contributors]
The MIT License (MIT). Please see License File for more information.