All Projects → shift31 → Laravel Elasticsearch

shift31 / Laravel Elasticsearch

Licence: mit
Elasticsearch for Laravel

Labels

Projects that are alternatives of or similar to Laravel Elasticsearch

Purify
An HTML Purifier / Sanitizer for Laravel
Stars: ✭ 194 (-2.51%)
Mutual labels:  laravel
Laravel Computed Properties
Make your accessors smarter
Stars: ✭ 197 (-1.01%)
Mutual labels:  laravel
Blogetc
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.
Stars: ✭ 198 (-0.5%)
Mutual labels:  laravel
Orgmanager
Invite System for GitHub Organizations
Stars: ✭ 196 (-1.51%)
Mutual labels:  laravel
Laravel Tournaments
Laravel Package that allows you to generate customizable tournaments trees.
Stars: ✭ 196 (-1.51%)
Mutual labels:  laravel
Laravel Microservice
[DEPRECATED] See https://github.com/lucidarch/lucid
Stars: ✭ 197 (-1.01%)
Mutual labels:  laravel
Laravel Cheat Sheet
Additional resource for the Udemy Laravel Essentials course
Stars: ✭ 194 (-2.51%)
Mutual labels:  laravel
Webloyer
Webloyer is a web UI for managing Deployer deployments
Stars: ✭ 199 (+0%)
Mutual labels:  laravel
Awesome Laravel Rus
Подборка ссылок на материалы по фреймворку Laravel на русском языке.
Stars: ✭ 196 (-1.51%)
Mutual labels:  laravel
Laravel Surveillance
Put malicious users, IP addresses and anonymous browser fingerprints under surveillance, log the URLs they visit and block malicious ones from accessing the Laravel app.
Stars: ✭ 198 (-0.5%)
Mutual labels:  laravel
Charts
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.
Stars: ✭ 2,337 (+1074.37%)
Mutual labels:  laravel
Laravel Shopr
A developer-friendly e-commerce foundation for your Laravel app
Stars: ✭ 196 (-1.51%)
Mutual labels:  laravel
Twill
Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible.
Stars: ✭ 2,539 (+1175.88%)
Mutual labels:  laravel
Bazar
Bazar is an e-commerce package for Laravel applications.
Stars: ✭ 194 (-2.51%)
Mutual labels:  laravel
Laravel Adminless Ldap Auth
Authenticate users in Laravel against an adminless LDAP server
Stars: ✭ 199 (+0%)
Mutual labels:  laravel
Core
AdminArchitect - Active Admin for Laravel
Stars: ✭ 194 (-2.51%)
Mutual labels:  laravel
Laradmin
Laradmin后台管理系统
Stars: ✭ 197 (-1.01%)
Mutual labels:  laravel
Pma
Simple shell script that installs phpMyAdmin on a Laravel Homestead box.
Stars: ✭ 199 (+0%)
Mutual labels:  laravel
Laravel Shop
Laravel 电商实战教程的项目代码
Stars: ✭ 2,341 (+1076.38%)
Mutual labels:  laravel
Librenms
Community-based GPL-licensed network monitoring system
Stars: ✭ 2,567 (+1189.95%)
Mutual labels:  laravel

Laravel Elasticsearch Service Provider (4.5.0)

Latest Stable Version Total Downloads Build Status Coverage Status License

This is a Laravel (4.2) Service Provider for the official Elasticsearch low-level client.

Version Matrix

Since there are breaking changes in Elasticsearch versions, your version of Elasticsearch must match the version of this library, which matches the version of the Elasticsearch low-level client.

Shift31/laravel-elasticsearch Elasticsearch Laravel
0.4 <= 0.90.* 4.2
1.0, 2.0 >= 1.0 4.x, 5.x
4.0 <= 0.90.* 4.2
4.1 >= 1.0 <= 2.0 4.2
4.2 >= 2.0 <= 5.0 4.2
4.5 >= 5.0 4.2
5.0 <= 0.90.* 5.x
5.1 >= 1.0 <= 2.0 5.x
5.2 >= 2.0 <= 5.0 5.x
5.5 >= 5.0 5.x

Attention: Until we launch new versions please keep using old stable versions (which are created as a branch) and don't use dev-master branch!

Usage

  1. Run composer require shift31/laravel-elasticsearch:~4.5.0

  2. Publish config file

Laravel artisan command

$ php artisan config:publish shift31/laravel-elasticsearch 

You can always read config parameters with:

\Config::get('shift31::elasticsearch');

Note: The keys of this array should be named according the parameters supported by Elasticsearch\ClientBuilder.

  1. In the 'providers' array in app/config/app.php, add 'Shift31\LaravelElasticsearch\ElasticsearchServiceProvider'.

  2. Use the Es facade to access any method from the Elasticsearch\Client class, for example:

$searchParams['index'] = 'your_index';
$searchParams['size'] = 50;
$searchParams['body']['query']['query_string']['query'] = 'foofield:barstring';
$result = Es::search($searchParams);

Default Configuration

If you return an empty array in the config file, Service provider merges default config with custom config variables. For custom config file question please see this elastic search configuration page.

Default config file which is publishing by artisan command.

Contributing

Please see CONTRIBUTING.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].