Download the PHP package boxed-code/laravel-scout-elasticsearch without Composer
On this page you can find all versions of the php package boxed-code/laravel-scout-elasticsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boxed-code/laravel-scout-elasticsearch
More information about boxed-code/laravel-scout-elasticsearch
Files in boxed-code/laravel-scout-elasticsearch
Package laravel-scout-elasticsearch
Short Description Elasticsearch Driver for Laravel Scout
License MIT
Informations about the package laravel-scout-elasticsearch
Laravel Scout Elasticsearch Driver
A basic elastic search backed driver for Laravel Scout.
This driver has a simple configuration, requiring you to set the hostname of your elasticsearch node.
Note that this driver uses a separate index for each model type as elasticsearch mapping types have been deprecated in elasticsearch 6.0 and will be removed in 8.0, for more information see https://bit.ly/2TZVZvq.
By default, the driver uses the simple_query_string
full text parser with and
as the default operator. More information on the functionality & syntax of this query format can be found here.
Requires Scout ^8.0 or ^9.0 & PHP >=7.2. Based on the original work of ErickTamayo (Scout 5/6/7 & elastic search server 5.x are supported by versions of 1.x)
Contents
- Installation
- Upgrading from 1.x --> 2.x
- Usage
- Credits
- License
Installation
You can install the package via composer:
If you're using Laravel 5.4, you must add the Scout service provider and the package service provider in your app.php config:
Add the elastic search configuration
Add the following to your scout configuration:
Upgrading from 1.x -> 2.x
If you are upgrading from 1.x -> 2.x and are using an elastic server version < 7.x you will need to constrain the version of the base elastic driver used in your composer.json. For example if you're running 6.x:
composer require elasticsearch/elasticsearch:^6.0
Remember: When you upgrade your server version to 7.x you will need to remove the package or upgrade it to the 7.x driver.
Usage
Now you can use Laravel Scout as described in the official documentation
Credits
- Oliver Green
- Erick Tamayo
- All Contributors
License
The MIT License (MIT).
All versions of laravel-scout-elasticsearch with dependencies
laravel/scout Version ^8.0|^9.0
elasticsearch/elasticsearch Version ^6.8|^7.0