update how elasticsearch handled queries like other drivers.