Fork me on GitHub

ElasticSearch.pm by clintongormley

A Perl API to ElasticSearch

ElasticSearch is an Open Source (Apache 2 license), distributed, RESTful Search Engine based on Lucene, and built for the cloud, with a JSON API. This module (ElasticSearch.pm) is a thin API which makes it easy to communicate with an ElasticSearch cluster. It maintains a list of all servers/nodes in the ElasticSearch cluster, and spreads the load randomly across these nodes. If the current active node disappears, then it attempts to connect to another node in the list. Forking a process triggers a server list refresh, and a new connection to a randomly chosen node in the list.

ElasticSearch talk at YAPC::EU 2010

Dependencies

LWP, JSON::XS, Encode

Install

cpanm ElasticSearch

License

GNU / Perl Artistic Licence

Authors

Clinton Gormley (clinton@iannounce.co.uk)

Contact

Clinton Gormley (clint@traveljury.com)

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/clintongormley/ElasticSearch.pm