fix for es 1.0.0

Simple fix for elastic search 1.0.0 version