Added support for document store queries.