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