From 5aa9941bbc369de9246553c6c00d42d568137f8c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 16 Jan 2017 12:12:50 -0800 Subject: [PATCH] Updated readme [skip ci] --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1759185..f34e2af 100644 --- a/README.md +++ b/README.md @@ -1184,15 +1184,15 @@ Searchkick.reindex_status(index_name) ### Refresh Interval -You can set a longer refresh interval while reindexing to increase performance. +You can specify a longer refresh interval while reindexing to increase performance. ```ruby -Product.reindex(refresh_interval: "30s") +Product.reindex(async: true, refresh_interval: "30s") ``` -Once completed, it’ll be restored to the value in your mapping (defaults to `1s`). +**Note:** This only makes a noticable difference with parallel reindexing. -For parallel reindexing, during promotion, use: +When promoting, have it restored to the value in your mapping (defaults to `1s`). ```ruby Product.search_index.promote(index_name, update_refresh_interval: true) -- libgit2 0.21.0