more elasticsearch-py compat.