Commit 112183c2ed01e3ee3eedd295cae55b6c4b8e2f1c
1 parent
601f9736
Exists in
master
and in
21 other branches
Added where to similar example - for #335
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
@@ -606,7 +606,7 @@ Find similar items. | @@ -606,7 +606,7 @@ Find similar items. | ||
606 | 606 | ||
607 | ```ruby | 607 | ```ruby |
608 | product = Product.first | 608 | product = Product.first |
609 | -product.similar(fields: ["name"]) | 609 | +product.similar(fields: ["name"], where: {size: "12 oz"}) |
610 | ``` | 610 | ``` |
611 | 611 | ||
612 | ### Geospatial Searches | 612 | ### Geospatial Searches |