For building the inverted index, all the test files must be in same directory
- Download or clone the repo
- Modify the
include/db_secrets.haccording to you database configuration - Run
maketo create the binaries - Run
./init_dbto setup the database - Now you have to load the keyword table into your database. Login to your database and enter
SOURCE data/keyw.sql;( replace 'data/keyw.sql' with the address of the keyw.sql file. - Run
python3 create_inv_index.pyto create the inverted index (Note that building inverted index is not a part of the algorithm and a hack has been used to build it, therefore it is required that you run./vsearch 1before building the inverted index) - Run
./vsearchwith the required parameter to execute