Thus we come to an end of Document Based Search that displays results based number of search words
found plus the number of occurrence of each search word in each document.
I implemented this technique after several optimizations to reduce the search time. I also tested
this technique over 60000 distinct documents. Initially the search time was around 23.35 seconds
and on consequent optimizations the search time was reduced to 10.89 seconds, 3.56 seconds and
finally to 0.71 seconds. Also note that the search time varies with the hardware setup. I welcome
comments on this article to optimize the performance further.