Used Vector Space model and cosine for correlation.
The code intends to fetch all the documents with the words search in conjunction with boolean conditions. Simulated Ranking algorithm which is built based on TFIDF, short for term frequency–inverse document frequency, which is a numerical statistic that is intended to reflect how important a word is in a document.