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.
Any suggestions for a start would be grateful!
Absolutely - Lucene:
Apache Lucene(TM) is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
Take a look at the FTS capabilities of SQLite. That should do pretty much what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With