use elastica library 1.1 and higher
remove empty fields arrays from mapping, this is not ignored anymore by elasticsearch 1.*
Also cleanup fields in properties of objects
still supporting 0.9 versions of elastica
Merge pull request #565 from FriendsOfSymfony/elasticsearch-1.1

Elasticsearch 1.*