Originally published at: http://www.sitepoint.com/integrate-elasticsearch-silex/
- Install and Integrate Elasticsearch with Drupal
- Integrate Elasticsearch with Silex
In the previous article I started exploring the integration between Drupal 7 and the Elasticsearch engine (henceforth referred to as Elastic). The goal was to see how we can combine these open source technologies to achieve a high performance application that uses the best of both worlds. If you’re just now joining us, you should check out this repository which contains relevant code for these articles.
We’ll now create a small Silex application that reads data straight from Elastic and returns it to the user.
Silex is a great PHP micro framework developed by the same people that are behind the Symfony project. It is in fact using mainly Symfony components but at a more simplified level. Let’s see how we can get started really quickly with a Silex app.
There is more than one way. You can add it as a dependency to an existent composer based project:
Or you can even create a new project using a nice little skeleton provided by the creator:
composer.phar create-project fabpot/silex-skeleton