Add support for elasticsearch delete by query

close #4487