Created
February 6, 2019 23:28
-
-
Save tehsven/00d74cd00b5aa441f7f781d69b7c39a2 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
# Value Based Filtering | |
index = SearchIndex.new | |
index.add(0, {name: "Example name", price: 5.00}) | |
index.search("example", filter: {price: 1.00}) | |
=> returns nothing | |
index.search("example", filter: {price: 5.00}) | |
=> returns Document 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment