Commit 4e8cbc332a236139f67404be383f8af189ddeb33
Exists in
master
and in
21 other branches
Merge branch 'macarthy-master'
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
README.md
@@ -64,7 +64,7 @@ Product.reindex | @@ -64,7 +64,7 @@ Product.reindex | ||
64 | And to query, use: | 64 | And to query, use: |
65 | 65 | ||
66 | ```ruby | 66 | ```ruby |
67 | -products = Product.search "2% Milk" | 67 | +products = Product.search "apples" |
68 | products.each do |product| | 68 | products.each do |product| |
69 | puts product.name | 69 | puts product.name |
70 | end | 70 | end |
@@ -77,7 +77,7 @@ Searchkick supports the complete [Elasticsearch Search API](http://www.elasticse | @@ -77,7 +77,7 @@ Searchkick supports the complete [Elasticsearch Search API](http://www.elasticse | ||
77 | Query like SQL | 77 | Query like SQL |
78 | 78 | ||
79 | ```ruby | 79 | ```ruby |
80 | -Product.search "2% Milk", where: {in_stock: true}, limit: 10, offset: 50 | 80 | +Product.search "apples", where: {in_stock: true}, limit: 10, offset: 50 |
81 | ``` | 81 | ``` |
82 | 82 | ||
83 | Search specific fields | 83 | Search specific fields |
@@ -549,7 +549,7 @@ Product.search "wingtips", facets: {size: {where: {color: "brandy"}}} | @@ -549,7 +549,7 @@ Product.search "wingtips", facets: {size: {where: {color: "brandy"}}} | ||
549 | Limit | 549 | Limit |
550 | 550 | ||
551 | ```ruby | 551 | ```ruby |
552 | -Product.search "2% Milk", facets: {store_id: {limit: 10}} | 552 | +Product.search "apples", facets: {store_id: {limit: 10}} |
553 | ``` | 553 | ``` |
554 | 554 | ||
555 | Ranges | 555 | Ranges |
@@ -860,7 +860,7 @@ To modify the query generated by Searchkick, use: | @@ -860,7 +860,7 @@ To modify the query generated by Searchkick, use: | ||
860 | 860 | ||
861 | ```ruby | 861 | ```ruby |
862 | products = | 862 | products = |
863 | - Product.search "2% Milk" do |body| | 863 | + Product.search "apples" do |body| |
864 | body[:query] = {match_all: {}} | 864 | body[:query] = {match_all: {}} |
865 | end | 865 | end |
866 | ``` | 866 | ``` |