Commit b0f75bc55f72b2ad1350fc8ee7acfb6ebf9d0db2
1 parent
c93656e0
Exists in
master
and in
21 other branches
Added curl command for mapping
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -34,7 +34,11 @@ rake searchkick:reindex CLASS=Book |
34 | 34 | |
35 | 35 | #### Gotchas |
36 | 36 | |
37 | -When changing the mapping in a model, you must create a new index for the changes to take place. Elasticsearch does not support updates to the mapping. For zero downtime, use the `reindex` method above which creates a new index and swaps it in once built. | |
37 | +When changing the mapping in a model, you must create a new index for the changes to take place. Elasticsearch does not support updates to the mapping. For zero downtime, use the `reindex` method above which creates a new index and swaps it in once built. To see the current mapping, use: | |
38 | + | |
39 | +```sh | |
40 | +curl http://localhost:9200/books/_mapping | |
41 | +``` | |
38 | 42 | |
39 | 43 | ## Installation |
40 | 44 | ... | ... |