adapt plugin for Elasticsearch 1.3.2