Add compatibility for ElasticSearch 1.0

Hi! I've made some changes to be compatible with ElasticSearch 1.0 and i add a new field in the configuration file.