Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Search Engine

📌 Project Overview

The Mini Search Engine is a Java-based console application that enables users to search for keywords across multiple text files. It creates an inverted index using a HashMap to provide fast and efficient keyword searching.

🚀 Features

  • Read multiple text files from a folder
  • Build an inverted index using HashMap
  • Fast keyword search
  • Case-insensitive searching
  • Removes punctuation for accurate results
  • Display complete keyword index
  • Menu-driven console interface

🛠️ Technologies Used

  • Java
  • HashMap
  • HashSet
  • Java Collections Framework
  • File Handling
  • String Processing
  • Scanner

📂 Project Structure

Mini-Search-Engine/
│── Documents/
│   ├── file1.txt
│   ├── file2.txt
│   └── file3.txt
│
│── MiniSearchEngine.java
│── README.md

▶️ How to Run

  1. Clone the repository
git clone https://github.com/your-username/Mini-Search-Engine.git
  1. Open the project in VS Code or Eclipse.

  2. Compile the program

javac MiniSearchEngine.java
  1. Run the program
java MiniSearchEngine

📷 Sample Output

====== MINI SEARCH ENGINE ======

1. Search Keyword
2. Display Index
3. Exit

Enter Choice: 1

Enter Keyword: java

Keyword Found!
file1.txt
file3.txt

📖 Concepts Used

  • HashMap
  • HashSet
  • File Handling
  • BufferedReader
  • String Processing
  • Java Collections Framework

🔮 Future Enhancements

  • Phrase Search
  • Wildcard Search
  • GUI using Java Swing/JavaFX
  • PDF and Word document support
  • Database Integration
  • Auto Suggestions

👨‍💻 Author

Sai Sathwik Saini

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages