changing the return value to support elastic search 0.9 index api