-
Notifications
You must be signed in to change notification settings - Fork 0
Elasticsearch 2.4 command reference
Probably ES version 2.4 https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-0
We use the FOSElasticaBundle by and large. To find out how and why we configured it as we did, read the documentation of that bundle.
curl -XGET 'http://localhost:9200/roeselaredev/_search?pretty=true&q=*:*'
curl -XGET 'localhost:9200/roeselaredev/person/_search?pretty=true' -d '{ "query" : {"match_all" : { } } }'
curl -XGET 'http://localhost:9200/_cat/indices?v'
curl -XPUT 'http://localhost:9200/roeselaredev/'
curl -XDELETE 'http://localhost:9200/_all'
php bin/console fos:elastica:populate
Here you'll find all custom classes related to ES in our app.
Custom class to be able to query our ES index. There are several convenience methods here. Most of them have the option to supply a query according to the principles outlined here. Each search method has the option to either search for the raw json-results, or for the mapped entities.
Custom class to map a json result from a search to a Doctrine entity. In effect: results are hydrated to Doctrine objects.