I am a newbie to Java and I want some help with designing a simple search engine in java. The program would read from a text file and would display the results. If I searched for some keyword say "star" it should show me something like the following:
Star belongs to Planets
Here Planet is the Topic and star is the sub-topic. Please help me with this. I started of with string search but I am not able to proceed.
Sample Text File: