Added searching for document using versions