Created
February 6, 2019 23:26
-
-
Save tehsven/64091b1f3429f7e25f0b8b8ec3714012 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Full Term Searching | |
index = SearchIndex.new | |
index.add(0, "some more examples") | |
index.search("exam") | |
=> returns nothing | |
index.search("examples") | |
=> returns Document 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment