Skip to content

RandumbWilliam/msci-541-search-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Homework 5 | Search Engine

Name: William Zhen
Student ID: 20792351
Email: [email protected]

How To Run The Program

Ensure you have Java installed!
This program was wirtten with Java JDK 17.
Click here to install Java
Compile the program if needed. In the main directory of the program:

  1. $ cd src
  2. $ javac search_engine/main/SearchEngine.java

To run the program:
$ java search_engine.main.SearchEngine

Parameters

The first prompt will prompt the user to locate it's latimes index folder.

Notes

After metadata, lexicon, and inverted index has been loaded, the user can now start using the program.

In the ranked retrieval query, choose an integer from ranked 1-10 to get the full raw document OR
N - new query (lowercase or uppercase)
Q - quit (lowercase or uppercase)

Instructions (Git repo instructions)

To use the Search Engine

  1. Open Terminal
  2. Change the current working directory to the location where you want the cloned directory
  3. $ git clone https://github.com/UWaterloo-MSCI-541/msci-541-f21-hw5-RandumbWilliam.git
  4. Press Enter to create your local clone
  5. $ cd msci-541-f21-hw5-RandumbWilliam/
  6. $ cd SearchEngine/src
  7. $ javac search_engine/main/SearchEngine.java
  8. $ java search_engine.main.SearchEngine
  9. Enter your path to the latimes index folder
  10. Wait for metadata, lexicon, and inverted index to load in
  11. Once it prompts you to "Enter your query: ", you can enter your query and hit Enter!
  12. Once your results have been retrieved, it'll prompt you to get one of the ranked documents or new query or quit
    "Enter the document you wish to view by entering the rank ["N" new query | "Q" quit]: "
  13. Finish

Example(MacOS)

  1. Open Terminal
  2. $ cd Desktop
  3. $ mkdir RepoClone
  4. $ cd RepoClone
  5. $ git clone https://github.com/UWaterloo-MSCI-541/msci-541-f21-hw5-RandumbWilliam.git
  6. Enter
  7. $ cd msci-541-f21-hw4-RandumbWilliam/
  8. $ cd SearchEngine/src
  9. $ javac search_engine/main/SearchEngine.java
  10. $ java search_engine.main.SearchEngine
  11. Enter your path to the latimes-index: /Users/williamzhen/Desktop/latimes-index
  12. Wait
  13. Enter your query: UV damage eyes
  14. Enter the document you wish to view by entering the rank ["N" new query | "Q" quit]:
  15. Finish

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages