Added methods to DocumentRepository to search phrases. Wrote search by query test for DocumentRepository.