A search engine with proximity dependent retrieval model.
This search engine is based on proximity dependent retrieval model.
Due to which the pages having more number of the query term pairs closer or within a specified distance will be ranked higher than the pages having more number of individual query terms.
Here, the query term pairs will be created in the order of their occurrence in the original query.
This search engine is implemented in Java.
BM25 or Okapi is used as the base retrieval model for the proximity retrieval model. The proximity retrieval model designed here is influenced by the retrieval model presented in the following research work:
Rasolofo, Yves, and Jacques Savoy. “Term Proximity Scoring for Keyword-Based Retrieval Systems.” Lecture Notes in Computer Science Advances in Information Retrieval, 2003, pp. 207–218., doi:10.1007/3-540-36618-0_15
Must Read the Research Paper for better understanding.
Note:
Querys querys = new Querys(Constants.QUERY_PATH);
SearchEngine searchEngine = new SearchEngine(RetrievalModel.PROXIMITY_SCORE);
searchEngine.setDisplayResults(true);
searchEngine.search(querys);
Enjoy!
Any kind of feedback will be highly appreciated.