Skip to content

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-indexer

How does it work?

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.

Building and running

  • 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+c to exit the program.
image

About

CLI app that searches for keywords in text files

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages