added a matching option for the search method - allow also matching terms by OR and not only by AND
added tests for match type, and removed switch/case
fixed spec names
Merge pull request #20 from rubinsh/master

Improve search functionality