iverberk/larasearch

Elasticsearch enabled Eloquent models
15,533 222
Install
composer require iverberk/larasearch
Latest Version:0.8.0
PHP:>=5.4.0
License:MIT
Last Updated:Feb 13, 2019
Links: GitHub  ·  Packagist
Maintainer: Ivo

Introduction

Larasearch is a Laravel package that aims to seamlessly integrate Elasticsearch functionality with the Eloquent ORM.

Features

  • Plug 'n Play searching functionality for Eloquent models
  • Automatic creation/indexing based on Eloquent model properties and relations
  • Aggregations, Suggestions, Autocomplete, Highlighting, etc. It's all there!
  • Load Eloquent models based on Elasticsearch queries
  • Automatic reindexing on updates of (related) Eloquent models

Installation

Laravel 5

NB: This is preliminary support. When L5 compatibility is stable I will tag it with a version.

Add Larasearch to your composer.json file:

"iverberk/larasearch": "dev-L5"

Add the service provider to your Laravel application config:

'Iverberk\Larasearch\LarasearchServiceProvider'

Laravel 4

Add Larasearch to your composer.json file:

"iverberk/larasearch": "0.8.0"

Add the service provider to your Laravel application config:

'Iverberk\Larasearch\LarasearchServiceProvider'

Wiki

Please see the Github wiki for the most up-to-date documentation.

Changelog

All releases are tracked and documented in the changelog.

Credits

This package is very much inspired by these excellent packages that already exist for the Ruby/Rails ecosystem.

A lot of their ideas have been reused to work within a PHP/Laravel environment.

Related Packages

websecret/laravel-search

Laravel Eloquent models with Elasticsearch 2

342 4
archy-bold/eloquent-searchable

A service layer to provide support for search on your Eloquent models. WIP only...

2,002 7
datashaman/elasticsearch-model

Laravel/Eloquent integration with Elasticsearch

129,136 7
torann/laravel-hunt

Unified search for Laravel models using Elasticsearch.

375 4
thaoha/eloquent-search

Index Eloquent models to Elasticsearch

532 0