From e0491a83093375ce1a0b36057516723beff193af Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 11 Jul 2015 19:54:00 -0700 Subject: [PATCH] Low fat milk => apples --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d5a13dd..c57a88c 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Product.reindex And to query, use: ```ruby -products = Product.search "Low fat Milk" +products = Product.search "apples" products.each do |product| puts product.name end @@ -77,7 +77,7 @@ Searchkick supports the complete [Elasticsearch Search API](http://www.elasticse Query like SQL ```ruby -Product.search "Low fat Milk", where: {in_stock: true}, limit: 10, offset: 50 +Product.search "apples", where: {in_stock: true}, limit: 10, offset: 50 ``` Search specific fields @@ -549,7 +549,7 @@ Product.search "wingtips", facets: {size: {where: {color: "brandy"}}} Limit ```ruby -Product.search "Low fat Milk", facets: {store_id: {limit: 10}} +Product.search "apples", facets: {store_id: {limit: 10}} ``` Ranges @@ -860,7 +860,7 @@ To modify the query generated by Searchkick, use: ```ruby products = - Product.search "Low fat Milk" do |body| + Product.search "apples" do |body| body[:query] = {match_all: {}} end ``` -- libgit2 0.21.0