From b0f75bc55f72b2ad1350fc8ee7acfb6ebf9d0db2 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 14 Jul 2013 19:09:49 -0700 Subject: [PATCH] Added curl command for mapping --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bac86aa..06b13ea 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,11 @@ rake searchkick:reindex CLASS=Book #### Gotchas -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. +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: + +```sh +curl http://localhost:9200/books/_mapping +``` ## Installation -- libgit2 0.21.0