- Elasticsearch
- Elasticsearch-PHP library
Please refer to the Elasticsearch documentation to install Elasticsearch.
If you prefer using a package manager such as apt
(apt-get
) or yum
, you can follow the documentation here
- Create a folder named
elasticsearch-php
within your drupalsites/all/libraries
directory. - Move into the
sites/all/libraries/elasticsearch-php
and Run the following command to install the library:
curl -s http://getcomposer.org/installer | php
php composer.phar require "elasticsearch/elasticsearch"
If you are using ElasticSearch 6, please make sure composer installs the corresponding elasticsearch:~6.0. Similarly,
if you are using ElasticSearch 5, make sure to tell composer to install ~5.0
.
For more details, visit the Elasticsearch PHP library API.
Next section: Installation and Setup