diff --git a/README.md b/README.md index a61423b..79ce487 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,17 @@ 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 + def to_indexed_json { title: title, -- libgit2 0.21.0