Skip to content

Latest commit

 

History

History
50 lines (23 loc) · 1.08 KB

README.md

File metadata and controls

50 lines (23 loc) · 1.08 KB

Simple-Search-Engine

Description

This project searches a text file that contains three fields in each line. An example would be

"Mohammad Arwani [email protected]" .The program will search through the file using the algorithm of choice. Three algorithms are available, ANY, NONE, ALL.

Usage

Explaining the arguments

--data

this Main argument, and is responsible for specifying the text file to be searched within. For example, java --data text.txt

1- Find a person

The user will be prompt to choose from three different algorithms "ANY, NONE, ALL"

ALL, the program should print lines containing all the words from the query.

ANY, the program should print the lines containing at least one word from the query.

NONE, the program should print lines that do not contain words from the query at all.

2- Print all people

Will print everything available in the text file.

0- Exit

Will close the program.

Credits

This program is based on the Encryption-Decryption project on Jet Brains Academy.