Enter a sentence and the code will retrieve the files where this sentence exist
Step1: the user enters the documents
Example:
Doc 1 new home sales top forecasts
Doc 2 home sales rise in july
Doc 3 increase in home sales in july
Doc 4 july new home sales rise
Step 2: The user enters the query
Example: Rise in july
Step 3: The system displays the positional index for rise, in and july
Rise (d2: 2, d4: 4)
In (d2: 3, d3: 1,4)
July (d2: 4, d3: 5, d4: 0)
Then It display the result of the entered query (d2 is the matched document)