Creates a new DocumentsQuery with its q property set to q.
q
a query string, or null
null
a new DocumentsQuery