The invention relates to a medical search engine and a system based on a repository. The engine works as follows: capturing a Chinese medical health directory to establish an original medical webpage database, extracting related information on webpage in the original medical webpage database and extracting comment information on hospitals, departments and doctors, so as to establish a medical comment information database, carrying out medical comment attribute field extraction of the abstracted related information by means of term frequency statistics and questionnaire to extract viewpoint phrase, analyzing viewpoint phrase orientation, determining an analytic result showing whether the comment information is positive or negative, determining the ranking of hospitals, departments and doctors, ordering search results according to a medical repository, and providing a user with highly structured and highly related information. In order to overcome the disadvantages of the result information of a common search engine such as unstructured form and low correlation degree and accuracy, the medical search engine and the system establish the medical repository to provide a user with highly structured medical information, and increase both correlation degree and accuracy for the user during querying medical information; moreover, the medical search engine and the system can effectively increase the accuracy and the recall rate of search results.