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
@@ -1441,7 +1441,7 @@ end @@ -1441,7 +1441,7 @@ end
1441 And use the `body` option to search: 1441 And use the `body` option to search:
1442 1442
1443 ```ruby 1443 ```ruby
1444 -products = Product.search body: {match: {name: "milk"}} 1444 +products = Product.search body: {query: {match: {name: "milk"}}}
1445 ``` 1445 ```
1446 1446
1447 **Note:** This replaces the entire body, so other options are ignored. 1447 **Note:** This replaces the entire body, so other options are ignored.