Fixed working for elasticsearch 1.0
Merge pull request #4 from y-ken/support_es_1.x

Add support elasticsearch 1.x