Add DocumentQuery.query, switch from ByteString to Text

query will take an index and a regexp and return either a set of
possibly matching documents or nothing.