A simple Mini Search Engine built in C++, which indexes text files and allows you to search for words across multiple files β showing which files contain the word and how many times it appears.
β
Reads multiple text files from a folder
β
Builds a searchable index of all words
β
Case-insensitive search
β
Displays how many times a word appears in each file
β
Beginner-friendly, uses only C++ STL
β
Extendable to more advanced versions (ranking, multi-word search, etc.)
Building search index... Index built successfully! β Total unique words indexed: 7
Enter a word to search (or 'exit' to quit): apple
Results for "apple":
- file1.txt (2 times)
- file2.txt (1 times)
- file3.txt (1 times)
Enter a word to search (or 'exit' to quit): mango
Results for "mango":
- file2.txt (1 times)
Enter a word to search (or 'exit' to quit): exit
Goodbye! π