adapat to elasticsearch version 0.9.0 api version