Skip to content

DaNgLiN/search_engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

search_engine

The challenge

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.

How to run this search engine

  1. clone this repository git clone https://github.com/DaNgLiN/search_engine.git

  2. download either sample.tar.bz2 or sample.zip and untar/unzip it in your search_engine directory.

  3. python3 browseing.py small-sample to create a search index!

    (get Python 3 here)

  4. pip install flask

  5. 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.

How to switch to the large sample

The instructions above only search 50 files. To search all 8,000+ files, make these two changes:

  1. python3 browseing.py large-sample to create the index. This takes ~5 minutes.

  2. 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.)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published