XML-based file search engine using TF-IDF
A simple and fast way search engine using Term Frequency - Inverse Document Frequency for XML-based files.
- Install
make. - Run
maketo compile the source code - Put your files in
./dataand runmake runor run./SearchEngine <data_dir>
The engine will index your files and waiting for commands. Currently, there are 2 commands: find and exit.
findis dedicated for searching term (or even a sentence), the engine will output the "matching score" along with the path of the file.
# Example
find glDisableVertexAttribArray
exit(orCtrl + C) will exit the program.