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 | 64 | And to query, use: |
65 | 65 | |
66 | 66 | ```ruby |
67 | -products = Product.search "2% Milk" | |
67 | +products = Product.search "apples" | |
68 | 68 | products.each do |product| |
69 | 69 | puts product.name |
70 | 70 | end |
... | ... | @@ -77,7 +77,7 @@ Searchkick supports the complete [Elasticsearch Search API](http://www.elasticse |
77 | 77 | Query like SQL |
78 | 78 | |
79 | 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 | 83 | Search specific fields |
... | ... | @@ -549,7 +549,7 @@ Product.search "wingtips", facets: {size: {where: {color: "brandy"}}} |
549 | 549 | Limit |
550 | 550 | |
551 | 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 | 555 | Ranges |
... | ... | @@ -860,7 +860,7 @@ To modify the query generated by Searchkick, use: |
860 | 860 | |
861 | 861 | ```ruby |
862 | 862 | products = |
863 | - Product.search "2% Milk" do |body| | |
863 | + Product.search "apples" do |body| | |
864 | 864 | body[:query] = {match_all: {}} |
865 | 865 | end |
866 | 866 | ``` | ... | ... |