-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
43 lines (37 loc) · 1.19 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SEARCH ENGINE PROJECT
A small program for demonstration purpose. It indexes texts from files and provide way for the users to search through those indexed files.
CLI-only version:
+ Prerequisite: (satisfied on almost any linux systems)
g++
glibcxx
+ Compilation:
g++ -Wall -O3 -std=c++0x *.cpp -o search-engine
+ Run:
./search-engine
GUI version:
+ Prerequisite: (can be easily installed with qt4-dev-tools package on ubuntu)
g++
glibcxx
cmake
libqt4-dev
+ Compilation:
mkdir build && cd build
cmake ..
make
+ Run
./search-engine (in build directory)
CLI Manual (can apply for GUI version):
Running:
search-engine [--option [<argument>]] <files_to_index>
Provide all file names as commandline arguments for the program
Eg: search-engine file1.txt file2.txt
search-engine documents/* (for indexing every files inside 'documents' directory)
Stop the program:
Use "." (dot) as the query
Program's option:
--stop-words-file <path/to/file>
specify stop words list file. Default file: "./stopwords"
--no-gui (for GUI version)
run without GUI
--help
show this manual