Skip to content

This is a course exercise of Data Structure, which is mostly writen in C and partly in Golang.

Notifications You must be signed in to change notification settings

cubarco/simple-chinese-search-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-chinese-search-engine

This is a course exercise of Data Structure, which is mostly writen in C and partly in Golang.

How to build

The project use Gumbo to parse the HTML files and Neko to route HTTP requests, make sure they are both installed.

git clone https://github.com/cubarco/simple-chinese-search-engine
cd simple-chinese-search-engine
make

Usage

genindex is used for generating the inverted index file.

cli is the command-line version of this engine.

httpd is the back-end of the Web version of this search engine.

./genindex # generate index.dat, this must be executed at first
export LD_LIBRARY_PATH=. # in order to add libsearch.so to the libpath
./cli # search something
./httpd # open the url http://localhost:55555, and try it

About

This is a course exercise of Data Structure, which is mostly writen in C and partly in Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages