allow not specifying a document type when doing a raw query.