asolopovas / scout-elasticsearch
Elasticsearch driver for Scout
This package's canonical repository appears to be gone and the package has been frozen as a result.
v3.0.1
2017-09-25 10:42 UTC
Requires
- php: >=7.0.0
- elasticsearch/elasticsearch: ^5.0
- laravel/scout: ^3.0
Requires (Dev)
- fzaninotto/faker: ^1.6
- mockery/mockery: ^0.9.6
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2023-06-24 15:16:46 UTC
README
Version
3.0.1
Contents
Installation
- Download package via composer
composer require asolopovas/scout-elasticsearch
- Add Scout service provider to ./config/app.php
'providers' => [ ... Laravel\Scout\ScoutServiceProvider::class, ... ],
- Append 'elasticsearch' configuration to ./config/scout.php:
'elasticsearch' => [ 'index' => env('ELASTICSEARCH_INDEX', 'laravel'), 'config' => [ 'ssl' => env('ELASTICSEARCH_SSL', false), 'hosts' => [ env('ELASTICSEARCH_HOST', "http://localhost:9200"), ], 'ssl' => [ 'certificate' => resource_path().'/ssl/ca.crt', ], ], ],
- Setup Elasticsearch evnironment variablies in your .env file. (Note: Replace these variables according to your configuration, basic auth can be passed as this http://user:pass@localhost. If you set SSL to true don't forget to add you verification certificate to ./resources/ssl)
...
ELASTICSEARCH_SSL=false
ELASTICSEARCH_HOST=http://localhost
ELASTICSEARCH_INDEX=laravel
...
Requirements
Scout-Elasticsearch engine require PHP version >=5.6.6. As well as Elasticsearch server up and running.
Issues
Bug reports and feature requests can be submitted on the Github Issue Tracker
License
Open-Sourced software licensed under the MIT license