made delete by query api elasticsearch 1.0.1 compatible