[ELASTICSEARCH] Fixed for elasticsearch 1.0.0RC1

NOTE: Since this commit elasticsearch 1.0.0RC1 and higher is required