Commit 0e718b729c9ddaf2a44b862789973e4449a89a28

Authored by Andrew Kane
1 parent 0fec7068

Updated readme [skip ci]

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
README.md
... ... @@ -2087,6 +2087,14 @@ Product.search("milk")
2087 2087 Product.search("milk").to_a
2088 2088 ```
2089 2089  
  2090 +You can reindex relations in the background:
  2091 +
  2092 +```ruby
  2093 +store.products.reindex(mode: :async)
  2094 +# or
  2095 +store.products.reindex(mode: :queue)
  2096 +```
  2097 +
2090 2098 And there’s a [new option](#default-scopes) for models with default scopes.
2091 2099  
2092 2100 Check out the [changelog](https://github.com/ankane/searchkick/blob/master/CHANGELOG.md#500-2022-02-21) for the full list of changes.
... ...