For this Project 2 Search milestone, your project must maintain the functionality from the Project v2.0 Tests assignment, as well as support partial search.

TABLE OF CONTENTS


Prerequisites

You must complete the following assignments before beginning to work on this one:

Untitled

Functionality

Your main method must be placed in a class named Driver and must process the following additional command-line arguments:

These are in addition to the command-line arguments from the previous Project v2.0 Tests assignment.

The command-line flag/value pairs may be provided in any order or not at all. Do not convert paths to absolute form when processing command-line input!

Output user-friendly error messages in the case of exceptions or invalid input. Under no circumstance should your main() method output a stack trace to the user!

Partial Search

For each unique multi-word query line, your code must find partial matches that start with a query word from the inverted index data structure and generate a search result for each match.

For example, the word stems perfor, perforc, and perform all start with perfor. In the file words.tExT, there are a total of 11 partial matches for the perfor query.

Run Examples

The following are a few non-comprehensive examples to illustrate the usage of the command-line arguments. These arguments can be passed to your Driver class via a “Run Configuration” in Eclipse, assuming you set the working directory. See the Project Testing guide for details.