This is a console-based mini search engine built using Java.
It demonstrates how search systems work internally using an inverted index and keyword-based lookup.
The system allows users to add documents and search for keywords efficiently with ranked results.
- Add documents with title and content
- Keyword-based search
- Inverted index using HashMap
- Ranking system based on word frequency
- Multi-document search results
- Console-based user interaction
- Used HashMap to build an inverted index
- Stored data as:
word โ (document โ frequency) - Implemented keyword search with fast lookup
- Added ranking logic based on frequency count
- Handled multiple documents and dynamic input
- Java
- Collections Framework (HashMap, List)
- OOP Concepts
==== MINI SEARCH ENGINE ====
- Add Document
- Search Document
- Exit 1 Title: Java Guide Enter Content: Java is easy Document Added!..
==== MINI SEARCH ENGINE ====
- Add Document
- Search Document
- Exit 1 Title: Spring Enter Content: Java is powerful Document Added!..
==== MINI SEARCH ENGINE ====
- Add Document
- Search Document
- Exit 2 Search Keyword: java Search Results (By Ranked): Java Guide (score: 2) Spring (score: 1)
==== MINI SEARCH ENGINE ====
- Add Document
- Search Document
- Exit 2 Search Keyword: spring Search Results (By Ranked): Spring (score: 1)
==== MINI SEARCH ENGINE ====
- Add Document
- Search Document
- Exit 3 Exiting...