Skip to content

Jimmymiji/COMP4321_project

Repository files navigation

Before Start:
	mkdir db
	mkdir lib
	move htmlparser.jar  rocksdbjni-6.8.0-linux64.jar to folder lib

when wrok on web server:
    clone this repo to web-app folder in apache home,
    do the steps in Before Start
    mkdir WEB-INF
    mkdir WEB-INF/classes
    cp -r comp4321 WEB-INF/classes
    cp -r IRUtilities WEB-INF/classes
    cp -r lib WEB-INF
    cp src/projectMain.* ./
    
    access the webpage by entering  "IPOFYOURSERVER:8080/comp4321/projectMain.html" in your browser
    
    If you want to access the web page on our server,make sure you are on campus or connected to HKUST vpn.
  	URL:  143.89.219.52:8080/comp4321/projectMain.html 
	drop cluah@connect.ust.hk an notification email so that he will turn on the server.


To compile:
javac -d ./ -cp ./lib/htmlparser.jar:./lib/rocksdbjni-6.8.0-linux64.jar:./   src/*.java

To run spider:
java  -cp ./lib/htmlparser.jar:./lib/rocksdbjni-6.8.0-linux64.jar:./   comp4321.Spider

To test indexer:
java  -cp ./lib/htmlparser.jar:./lib/rocksdbjni-6.8.0-linux64.jar:./   comp4321.InvertedIndex

To test engine:
java  -cp ./lib/htmlparser.jar:./lib/rocksdbjni-6.8.0-linux64.jar:./   comp4321.Engine   "QUERY"   num_of_results_you_want

To run our test program:
java  -cp ./lib/htmlparser.jar:./lib/rocksdbjni-6.8.0-linux64.jar:./   comp4321.Test > spider_result.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages