ElasticSearch in PHP

·

ElasticSearch is a new alternative to Solr: built on top of Lucene, in Java, it runs using REST/HTTP/JSON.

Installation is as simple as unzipping and running bin/elasticsearch.

Here's a PHP class for carrying out simple functions:

Here's some example PHP code that fetches bus stop data as JSON from TfL, adds it to a new ElasticSearch index, then queries the index: