Added support for elasticsearch.