Skip to content

rjackson-dev-ops/SearchLocalitySolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Locality

Tool to search through text documents.

Problem/Domain Analysis

See this document SearchLocalityDesign.docx

Tools

  • Ruby
  • Rspec

### Running the application

PS C:\dev\Stelligent\workspaces\SearchLocalitySolution> ruby  search_script.rb developer operations 9 data/empty_directory
No Matches found
PS C:\dev\Stelligent\workspaces\SearchLocalitySolution> ruby  search_script.rb developer operations 9 data/directory_with_multple_text_files
Found the following matches
In file data/directory_with_multple_text_files/match_text1.txt-the first term was found at index 6 and the second term was found at index 4
In file data/directory_with_multple_text_files/match_text1.txt-the first term was found at index 21 and the second term was found at index 2
In file data/directory_with_multple_text_files/match_text1.txt-the first term was found at index 29 and the second term was found at index 2


### Testing the application

PS C:\dev\Stelligent\workspaces\SearchLocalitySolution> cd test
PS C:\dev\Stelligent\workspaces\SearchLocalitySolution\test> ls


 Directory: C:\dev\Stelligent\workspaces\SearchLocalitySolution\test


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        8/28/2017  10:45 AM           5012 search_locality_spec.rb


PS C:\dev\Stelligent\workspaces\SearchLocalitySolution\test> rspec .\search_locality_spec.rb
............

Finished in 0.021 seconds (files took 0.155 seconds to load)
12 examples, 0 failures

PS C:\dev\Stelligent\workspaces\SearchLocalitySolution\test>

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Jonny Sywulak - Mentor

About

Search Locality Problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages