Skip to content

Jovisa/simple-search-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-search-engine

simple-search-engine which processes some data and searches it for a word or a phrase.

searching strategies as ALL, ANY, and NONE.

Take, for example, these six sample lines:

Dwight Joseph [email protected] Rene Webb [email protected] Katie Jacobs Erick Harrington [email protected] Myrtle Medina Erick Burgess If the strategy is ALL, the program should print lines containing all the words from the query. Query:

Harrington Erick Result:

Erick Harrington [email protected] If the strategy is ANY, the program should print the lines containing at least one word from the query. Query:

Erick Dwight [email protected] Result:

Erick Harrington [email protected] Erick Burgess Dwight Joseph [email protected] Rene Webb [email protected] If the strategy is NONE, the program should print lines that do not contain words from the query at all: Query:

[email protected] ERICK

Result:

Katie Jacobs Myrtle Medina Rene Webb [email protected] All listed operations are implemented in the inverted index. The results should not contain duplicates.

Do not forget to use methods to decompose your program.

Example The lines that start with > represent the user input. Note that these symbols are not part of the input.

=== Menu ===

  1. Find a person
  2. Print all persons
  3. Exit

1

Select a matching strategy: ALL, ANY, NONE

ANY

Enter a name or email to search all suitable people.

Katie Erick QQQ

3 persons found: Katie Jacobs Erick Harrington [email protected] Erick Burgess

About

simple-search-engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages