Commit e40108dadc025a972402d63424dfed202759fa4a

Authored by Andrew
1 parent c0aefd16

Cleaner examples [skip ci]

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
README.md
... ... @@ -1488,18 +1488,18 @@ Searchkick.client
1488 1488 To batch search requests for performance, use:
1489 1489  
1490 1490 ```ruby
1491   -fresh_products = Product.search("fresh", execute: false)
1492   -frozen_products = Product.search("frozen", execute: false)
1493   -Searchkick.multi_search([fresh_products, frozen_products])
  1491 +products = Product.search("snacks", execute: false)
  1492 +coupons = Coupon.search("snacks", execute: false)
  1493 +Searchkick.multi_search([products, coupons])
1494 1494 ```
1495 1495  
1496   -Then use `fresh_products` and `frozen_products` as typical results.
  1496 +Then use `products` and `coupons` as typical results.
1497 1497  
1498   -**Note:** Errors are not raised as with single requests. Use the `error` method on each query to check for errors. Also, if you use the `below` option for misspellings, misspellings will be disabled.
  1498 +**Note:** Errors are not raised as with single requests. Use the `error` method on each query to check for errors.
1499 1499  
1500 1500 ## Multiple Indices
1501 1501  
1502   -Search across multiple indices with:
  1502 +Search across multiple models/indices with:
1503 1503  
1504 1504 ```ruby
1505 1505 Searchkick.search "milk", index_name: [Product, Category]
... ...