Skip to content

Latest commit

Β 

History

History
36 lines (23 loc) Β· 965 Bytes

File metadata and controls

36 lines (23 loc) Β· 965 Bytes

πŸ” Mini Search Engine (C++)

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.

πŸš€ Features

βœ… 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.)

πŸ–ΌοΈ Demo Output

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! πŸ‘‹