Change this search engine to recognize exact phrases and boost them up to the top of the search results.
The information you need to do this is already in the index.
-
clone this repository
git clone https://github.com/DaNgLiN/search_engine.git
-
download either sample.tar.bz2 or sample.zip and untar/unzip it in your
search_engine
directory. -
python3 browseing.py small-sample
to create a search index! -
pip install flask
-
FLASK_DEBUG=1 FLASK_APP=web.py flask run
to start the web server!
Then you can go to <http://localhost:5000/>
to see the to search engine.
The instructions above only search 50 files. To search all 8,000+ files, make these two changes:
-
python3 browseing.py large-sample
to create the index. This takes ~5 minutes. -
In
web.py
, just change the string"small-sample"
to"large-sample"
. (When you save that file, Flask will notice and automatically restart your web server.)