Commit 5aa9941bbc369de9246553c6c00d42d568137f8c
1 parent
fd4e1ed1
Exists in
master
and in
19 other branches
Updated readme [skip ci]
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
README.md
... | ... | @@ -1184,15 +1184,15 @@ Searchkick.reindex_status(index_name) |
1184 | 1184 | |
1185 | 1185 | ### Refresh Interval |
1186 | 1186 | |
1187 | -You can set a longer refresh interval while reindexing to increase performance. | |
1187 | +You can specify a longer refresh interval while reindexing to increase performance. | |
1188 | 1188 | |
1189 | 1189 | ```ruby |
1190 | -Product.reindex(refresh_interval: "30s") | |
1190 | +Product.reindex(async: true, refresh_interval: "30s") | |
1191 | 1191 | ``` |
1192 | 1192 | |
1193 | -Once completed, it’ll be restored to the value in your mapping (defaults to `1s`). | |
1193 | +**Note:** This only makes a noticable difference with parallel reindexing. | |
1194 | 1194 | |
1195 | -For parallel reindexing, during promotion, use: | |
1195 | +When promoting, have it restored to the value in your mapping (defaults to `1s`). | |
1196 | 1196 | |
1197 | 1197 | ```ruby |
1198 | 1198 | Product.search_index.promote(index_name, update_refresh_interval: true) | ... | ... |