Commit 437ddb248961eebdc9ec7c5177e72e7d33ad3d4c
1 parent
6568ac52
Exists in
master
and in
19 other branches
Added fields to readme example [skip ci]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
@@ -73,7 +73,7 @@ Product.reindex | @@ -73,7 +73,7 @@ Product.reindex | ||
73 | And to query, use: | 73 | And to query, use: |
74 | 74 | ||
75 | ```ruby | 75 | ```ruby |
76 | -products = Product.search "apples" | 76 | +products = Product.search("apples", fields: [:name]) |
77 | products.each do |product| | 77 | products.each do |product| |
78 | puts product.name | 78 | puts product.name |
79 | end | 79 | end |