implemented search service
added exception if query is too short
added test for search
implemented search