I am building a search engine in Java. The search engine should search for the word entered in the textbox in 80 documents and then display the number of matching documents, the number of times that word appearing in each document.
For a start I imported all txt files and created a class Search.
I need to build an index in order to index each word in the 80 documents so that I can develop an algorithm to compare the word entered with the indexed words and return back the results.
Any suggestions for a start would be grateful !!
Regards,
Humam.
Absolutely – Lucene: