You can inject your documents on folder and the code retun yours results search in order.
Before clone this repository, for use this code you have Let's first install python3, pip and flask.
How install python3 on Linux:
Ubuntu/Debian
sudo apt-get install python3
Arch
pacman -S install python3
How install pip3 on Linux:
Ubuntu/Debian
sudo apt-get install python3-pip
Arch
pacman -S install python3-pip
How install Flask on Linux:
Ubuntu/Debian
sudo pip3 install flask
Arch
sudo pip3 install flask
- Add yours documents on folder ./docs.
- your documents must are type of txt.
- Rename yours document with n(number of document) starting n=1.
- Ex: 1.txt;2.txt;(...);n.txt. You can add n document's, but it will slow down.
- Edit line on document .py in /ORI/Main.py.
- QNT = 10 (add your number of documents) # Quantidade de Documentos
Open the terminal on folder.Write
python3 Main.py
Open your browser. Write on input.
127.0.0.1:5000
Write on input website and click in search.