- Notifications
You must be signed in to change notification settings - Fork11
An easy way to use the official Elastic Search 5.x-6.x client in your Laravel 5.
License
fly-studio/laravel-scout-elasticsearch
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An easy way to use the official Elastic Search 5.x~6.x client in your Laravel 5.
Warning: This Manual is foraddons/elasticsearch:3.0.0,Elasticsearch 6.x. If you use the Elasticsearch 5.x, Please visit2.0.1
- Version
- Difference
- Installation and Configuration
- Config
- Usage
- Sync Database to ES
- Logstash Supported
- Copyright and License
- addons/elasticsearch:1.0.2
- Elasticsearch 5.x
- Laravel/Scout 3.0
- Laravel 5.1~5.5
- addons/elasticsearch:2.0.1
- Elasticsearch 5.x
- Laravel/Scout 3.0~4.0
- Laravel 5.1~5.6
- addons/elasticsearch:3.0.0 - master
- Elasticsearch 6.x
- Laravel/Scout 4.0
- Laravel 5.1~5.6
Elasticsearch 6.0 removes(deprecats) the TYPE. (like database's table)
So We use the ES's index namedenv('SCOUT_PREFIX').$mode->getTable() for each table
eg:
.env
SCOUT_PREFIX = my_application_name-Index name like:
my_application_name-usersmy_application_name-rolesThis Builder will search in ES, not Database.
User::search('must')->where('name', 'admin')->whereIn('type', ['1', '2'])->get();// page 1User::search()->where(...)->paginate(25);// page 4User::search()->where(...)->paginate(25, ['*'], 'page', 4)User::search('must', function($elasticsearch, &$query){ print_r($query); // Show the DSL JSON // ... edit the $query.})->where(...)->get();elasticsearchwas written byColin Viebrock,Fly and is released under theMIT License.
Copyright (c) 2016-2018
About
An easy way to use the official Elastic Search 5.x-6.x client in your Laravel 5.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.