Commit 82fd2292d6b4cba79a64ee16aee9619444dd5efc
1 parent
a4343772
Exists in
master
and in
21 other branches
Added reference
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
README.md
@@ -150,6 +150,15 @@ rake searchkick:reindex CLASS=Product | @@ -150,6 +150,15 @@ rake searchkick:reindex CLASS=Product | ||
150 | 150 | ||
151 | Thanks to Jaroslav Kalistsuk for the [original implementation](https://gist.github.com/jarosan/3124884). | 151 | Thanks to Jaroslav Kalistsuk for the [original implementation](https://gist.github.com/jarosan/3124884). |
152 | 152 | ||
153 | +### Reference | ||
154 | + | ||
155 | +Reindex one item | ||
156 | + | ||
157 | +```ruby | ||
158 | +product = Product.find(1) | ||
159 | +product.update_index | ||
160 | +``` | ||
161 | + | ||
153 | ## Elasticsearch Gotchas | 162 | ## Elasticsearch Gotchas |
154 | 163 | ||
155 | ### Inconsistent Scores | 164 | ### Inconsistent Scores |