Simple program that achieves these objectives-
-
It takes in multiple paragraphs of text, assigns a unique ID To each paragraph and stores the words to paragraph mappings on an inverted index. This is similar to what elasticsearch does. This paragraph can also be referred to as a ‘document’
-
Given a word to search for, it lists out the top 10 paragraphs in which the word is present
- Node.js
- Express
- Multer
- pdfreader
- Text Search
- PDF Option Available
git clone
the repository.- Install dependencies using
npm install
. - Run the app using
npm run start
. To run in debug mode, runnpm run debug
. - Open
http://127.0.0.1:4000/