From c6e369a3e22f9865a6d58d992086667abdb7f8a2 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 23 Jul 2013 23:06:20 -0700 Subject: [PATCH] Updated readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa8a888..58953d2 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ You must call `Product.reindex` after changing synonyms. ```ruby class Product < ActiveRecord::Base - def search_data + def search_source as_json(only: [:name, :active]) end end @@ -150,7 +150,7 @@ class Product < ActiveRecord::Base searchkick conversions: true - def search_data + def search_source { name: name, conversions: searches.group("query").count.map{|query, count| {query: query, count: count} }, # TODO fix -- libgit2 0.21.0