Commit 56f602e6f260d9787448b7265583e0389bb1d144
1 parent
9507809f
Exists in
master
and in
21 other branches
Updated readme
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
README.md
... | ... | @@ -92,15 +92,11 @@ Product.search "Fat Free Milk", conversions: true |
92 | 92 | |
93 | 93 | ### Zero Downtime Changes |
94 | 94 | |
95 | -Elasticsearch has a feature called aliases that allows you to change mappings with no downtime. | |
96 | - | |
97 | 95 | ```ruby |
98 | 96 | Product.reindex |
99 | 97 | ``` |
100 | 98 | |
101 | -This creates a new index `products_20130714181054` and points the `products` alias to the new index when complete - an atomic operation :) | |
102 | - | |
103 | -**First time:** If products is an existing index, it will be replaced by an alias. | |
99 | +Behind the scenes, this creates a new index `products_20130714181054` and points the `products` alias to the new index when complete - an atomic operation :) | |
104 | 100 | |
105 | 101 | Searchkick uses `find_in_batches` to import documents. To filter documents or eagar load associations, use the `searchkick_import` scope. |
106 | 102 | |
... | ... | @@ -116,7 +112,7 @@ There is also a rake task. |
116 | 112 | rake searchkick:reindex CLASS=Product |
117 | 113 | ``` |
118 | 114 | |
119 | -Thanks to Jaroslav Kalistsuk for the [original implementation](https://gist.github.com/jarosan/3124884) and Clinton Gormley for a [good post](http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime/) on this. | |
115 | +Thanks to Jaroslav Kalistsuk for the [original implementation](https://gist.github.com/jarosan/3124884). | |
120 | 116 | |
121 | 117 | ## Elasticsearch Gotchas |
122 | 118 | ... | ... |