A simple search engine for documents based on inverted-index. ReactJs for frontend and Djano Rest Framework for Rest API.
Deploying frontend on Github pages and backend on heroku.
Backend:- https://quiet-badlands-42446.herokuapp.com/api/
Can be used to index documents and words in the document.
Can be used to search words present in different documents.
index: Index the entrered set of paragraphs.
search: Search for the given words in the documents.
getALl: View all the documents present in the db.
clear: Clear all the indexes in the db.
Python
Django
Django Rest Framework
ReactJs
Heroku
Given the frontpage of the TapSearch website. Click on Index
Enter the documents or paragraphs to be indexed and press index it.
Go to search page and search for the specific word in each document.
Go to All Documents to get all the documents that has been indexed.
Press clear to clear all the indexed documents.
The given webapp can be further improve by adding phrase indexing. so that we can seach for phrases.
The search can be modified search that we can get all the paragraphs that contains the word the user has typed untill now.
- Clone the repo.
git clone https://github.com/sorablaze11/TapSearch.git
- Install python and nodejs if you don't have it installed in your laptop/desktop.
- At the project folder. Enter the below code to install all the libraries.
pip install -r requirements.txt
- Go to backend and enter to run the backend searver.
python manage.py runserver
- Go to frontend and enter the below code to install the dependencies.
npm i
- After that type the below code to run frontend server.
npm start
- Now go to below link to access the webapp.
http://127.0.0.1:3000/