Search portfolio

All projects

Data Structures / Completed

Mini Search Engine

A Java desktop application that indexes documents and looks up matching words through an inverted index.

  • Java
  • Swing
  • HashMap
  • Trie

System architecture

Read documents and map each indexed word to its document IDs in a HashMap.

Problem and motivation

This project makes document indexing tangible through a small desktop search application. It illustrates how a search tool can maintain a lookup from individual terms to the documents that contain them.

Implementation decisions

A HashMap implements the inverted index, mapping indexed words to document IDs. A Trie stores words by character. The Java Swing interface contains search, result cards and document statistics and shows an empty state when no documents match.

Scope

The documented interface searches for words in a local set of already indexed documents. The repository includes diagrams and examples of how the index and Trie represent document terms.