diff --git a/README.md b/README.md index 8eb0cbd..07e49ce 100644 --- a/README.md +++ b/README.md @@ -47,16 +47,7 @@ Add the conversions to the index. class Book < ActiveRecord::Base has_many :searches - tire do - settings Searchkick.settings - mapping do - indexes :title, analyzer: "searchkick" - indexes :conversions, type: "nested" do - indexes :query, analyzer: "searchkick_keyword" - indexes :count, type: "integer" - end - end - end + searchkick :name, conversions: true def to_indexed_json { @@ -71,9 +62,7 @@ end After the reindex is complete (to prevent errors), tell the search query to use conversions. ```ruby -Book.search do - searchkick_query ["title"], "Nobody Listens to Andrew", true -end +Book.search("Nobody Listens to Andrew", conversions: true) ``` ### Zero Downtime Changes -- libgit2 0.21.0