Commit c6e369a3e22f9865a6d58d992086667abdb7f8a2
1 parent
5bdf4085
Exists in
master
and in
21 other branches
Updated readme
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
README.md
... | ... | @@ -115,7 +115,7 @@ You must call `Product.reindex` after changing synonyms. |
115 | 115 | |
116 | 116 | ```ruby |
117 | 117 | class Product < ActiveRecord::Base |
118 | - def search_data | |
118 | + def search_source | |
119 | 119 | as_json(only: [:name, :active]) |
120 | 120 | end |
121 | 121 | end |
... | ... | @@ -150,7 +150,7 @@ class Product < ActiveRecord::Base |
150 | 150 | |
151 | 151 | searchkick conversions: true |
152 | 152 | |
153 | - def search_data | |
153 | + def search_source | |
154 | 154 | { |
155 | 155 | name: name, |
156 | 156 | conversions: searches.group("query").count.map{|query, count| {query: query, count: count} }, # TODO fix | ... | ... |