Commit 250baf403085ae587996661ee07a659045c5647c

Authored by Andrew
1 parent 15bd651d

Fixed example - #1180 [skip ci]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
README.md
... ... @@ -1441,7 +1441,7 @@ end
1441 1441 And use the `body` option to search:
1442 1442  
1443 1443 ```ruby
1444   -products = Product.search body: {match: {name: "milk"}}
  1444 +products = Product.search body: {query: {match: {name: "milk"}}}
1445 1445 ```
1446 1446  
1447 1447 **Note:** This replaces the entire body, so other options are ignored.
... ...