Download the PHP package almeida/laravel-elasticsearch without Composer
On this page you can find all versions of the php package almeida/laravel-elasticsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download almeida/laravel-elasticsearch
More information about almeida/laravel-elasticsearch
Files in almeida/laravel-elasticsearch
Package laravel-elasticsearch
Short Description Laravel 4.2+ wrapper for ElasticSearch
License MIT
Homepage https://github.com/arnold-almeida/laravel-elasticsearch
Informations about the package laravel-elasticsearch
Preamble
I need to improve search. Currently using mongob, 2dspheres etc.
Bring on Elasticsearch. Basically just a wrapper for the offical client.
http://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
Afternoon hack
- Trying to put togeter a nice package so we can use ElasticSearch easily
- Should play well with league/fractal
- Should play well with illuminate/collections
- Should play well with fractal/item
- Should play well with fractal/resources
- etc..
Install via Composer
require : {
"almeida/laravel-elasticsearch" : "dev-master"
}
Step 1
Extend the abstract ElasticDocument
so you get some easy CRUD.
Let's assume we are working with movies.
Creating / Updating an index
Create an index.
Assuming you have already a working fractal/transformer
Deleting an index (@todo)
Deleting an index.
Indexing en masse in the Console
Searching (WIP)
Promise to work on it over the next few days.
Todo
-
think about this more
- Move search, stats, and aggerates to Traits so we only use them on applicable documents
GOTCHAS
Deving locally on OSX i couldnt get the client to connect to elasticsearch even though i could access it in the browser at http://localhost:9200
This fixed it for now...
The correct way to access is actually through, http://127.0.0.1:9200
Will work it out when i sort out nicer config etc.
Required reading
- http://www.elastic.co/guide/en/elasticsearch/guide/current/
- http://www.elastic.co/guide/en/elasticsearch/client/php-api/current/_quickstart.html
Relevance
How is it calculated ?
Monitoring elasticsearch using Marvel (dev)
https://www.elastic.co/downloads/marvel
Thanks for the notes
- http://www.slideshare.net/bencorlett/discovering-elasticsearch
- http://blog.madewithlove.be/post/integrating-elasticsearch-with-your-laravel-app/
- http://blog.madewithlove.be/post/elasticsearch-aggregations/
- https://www.youtube.com/watch?v=waTWeJeFp4A
- https://www.youtube.com/watch?v=7FLXjgB0PQI
- http://laravel.com/docs/4.2/eloquent#model-observers
- https://www.youtube.com/watch?v=GrdzX9BNfkg
I accept bitcoin tips. [18tEqEUnyJaqvKh3CCNAAai9seztLb3Tw9].
They should too! Come on its going to be a thing.
LICENSE
MIT
All versions of laravel-elasticsearch with dependencies
elasticsearch/elasticsearch Version 1.1.*
illuminate/support Version 4.2.*
league/fractal Version 0.11.*