diff --git a/README.md b/README.md index 69a7883..f049765 100644 --- a/README.md +++ b/README.md @@ -220,11 +220,15 @@ By default, results must match the entire word - `back` will not match `backpack ```ruby class Product < ActiveRecord::Base - searchkick match: :word_start + searchkick word_start: [:name] end ``` -And reindex. +And to search (after you reindex): + +```ruby +Product.search "back", fields: [:name], match: :word_start +``` Available options are: -- libgit2 0.21.0