Commit 105c88b7ed5a9c8eea0380ad446f07ae4b008dda
Committed by
Andrew Kane
1 parent
ddb83f0b
Exists in
master
and in
18 other branches
Update README.md (#1169)
Correct example of async reindex with `wait`
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -1218,7 +1218,7 @@ Searchkick.reindex_status(index_name) |
1218 | 1218 | You can also have Searchkick wait for reindexing to complete |
1219 | 1219 | |
1220 | 1220 | ```ruby |
1221 | -Searchkick.reindex(async: {wait: true}) | |
1221 | +Product.reindex(async: {wait: true}) | |
1222 | 1222 | ``` |
1223 | 1223 | |
1224 | 1224 | You can use [ActiveJob::TrafficControl](https://github.com/nickelser/activejob-traffic_control) to control concurrency. Install the gem: | ... | ... |