This is a simple command-line application that simulates a text file search mechanism. It reads the files, builds an inverted index and saves it as a file. After that, it is possible to search for keywords, returning a list of documents that have the desired search term.
- Run (on Linux):
$ make && ./main- That will put you inside the app's CLI. You can then run your desired commands:
>> indice construir <dir_path> # Processes the files inside the specified directory and builds its inverted index and saves it as index.dat
>> indice buscar <search_term> # If there is a `index.dat` file in the directory it is loaded and prints the relevant files- Just use
ctrl+cto exit the program.