Add support for 'query' to the bulk API.