Commit e0491a83093375ce1a0b36057516723beff193af

Authored by Andrew Kane
1 parent d44c50dc

Low fat milk => apples

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
@@ -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 "Low fat 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 "Low fat 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 "Low fat 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 "Low fat 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 ```